diff --git a/EventHandler.cs b/EventHandler.cs index 5a0d6d8..fb8fde1 100644 --- a/EventHandler.cs +++ b/EventHandler.cs @@ -54,6 +54,11 @@ public static class EventHandler public static async Task OnMessageCreated(DiscordClient client, MessageCreatedEventArgs e) { + if (e.Author.IsCurrent && e.Message.MessageType == DiscordMessageType.ChannelPinnedMessage) + { + await e.Message.DeleteAsync(); + } + if (e.Author.IsBot) { return;