mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
feat(bot): use discord timestamps on cv2 cards
This commit is contained in:
parent
0983179240
commit
83f866384a
2 changed files with 8 additions and 5 deletions
|
|
@ -45,6 +45,9 @@ public static class DiscordUtils
|
|||
public static ulong InstantToSnowflake(Instant time) =>
|
||||
(ulong)(time - Instant.FromUtc(2015, 1, 1, 0, 0, 0)).TotalMilliseconds << 22;
|
||||
|
||||
public static string InstantToTimestampString(Instant time) =>
|
||||
$"<t:{time.ToUnixTimeSeconds()}:f>";
|
||||
|
||||
public static async Task CreateReactionsBulk(this DiscordApiClient rest, Message msg, string[] reactions)
|
||||
{
|
||||
foreach (var reaction in reactions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue