PluralKit/Myriad/Extensions/MessageExtensions.cs

14 lines
449 B
C#
Raw Normal View History

2021-04-29 11:10:19 +02:00
using Myriad.Gateway;
using Myriad.Types;
namespace Myriad.Extensions
2020-12-22 13:15:26 +01:00
{
public static class MessageExtensions
2020-12-22 13:15:26 +01:00
{
public static string JumpLink(this Message msg) =>
$"https://discord.com/channels/{msg.GuildId}/{msg.ChannelId}/{msg.Id}";
public static string JumpLink(this MessageReactionAddEvent msg) =>
$"https://discord.com/channels/{msg.GuildId}/{msg.ChannelId}/{msg.MessageId}";
2020-12-22 13:15:26 +01:00
}
}