PluralKit/Myriad/Extensions/MessageExtensions.cs

16 lines
464 B
C#
Raw Normal View History

2021-01-30 00:07:43 +00:00
using System;
using Myriad.Gateway;
using Myriad.Types;
namespace Myriad.Extensions
2020-12-22 12:15:26 +00:00
{
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}";
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
}
}