feat(bot): use discord timestamps on cv2 cards

This commit is contained in:
asleepyskye 2025-11-07 09:20:23 -05:00
parent 0983179240
commit 83f866384a
2 changed files with 8 additions and 5 deletions

View file

@ -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)