feat(bot): add support for Discord message context commands (#513)

This commit is contained in:
Iris System 2023-05-15 15:17:34 +00:00 committed by GitHub
parent 13c055dc0f
commit 83af1f04a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 515 additions and 30 deletions

View file

@ -14,6 +14,12 @@ public class PKMessage
public ulong? OriginalMid { get; set; }
}
public static class PKMessageExt
{
public static string JumpLink(this PKMessage msg) =>
$"https://discord.com/channels/{msg.Guild!.Value}/{msg.Channel}/{msg.Mid}";
}
public class FullMessage
{
public PKMessage Message;