PluralKit/Myriad/Extensions/MessageExtensions.cs

13 lines
408 B
C#
Raw Normal View History

2021-08-27 15:03:47 +00:00
using Myriad.Gateway;
using Myriad.Types;
namespace Myriad.Extensions;
public static class MessageExtensions
2020-12-22 12:15:26 +00:00
{
public static string JumpLink(this Message msg) =>
$"https://discord.com/channels/{msg.GuildId}/{msg.ChannelId}/{msg.Id}";
2021-08-27 15:03:47 +00:00
public static string JumpLink(this MessageReactionAddEvent msg) =>
$"https://discord.com/channels/{msg.GuildId}/{msg.ChannelId}/{msg.MessageId}";
2020-12-22 12:15:26 +00:00
}