Пример #1
0
        public static async Task <bool> DeleteGuildEmoji(string guildId, string emojiId)
        {
            // TODO: DiscordAPI.Emoji
            var response = await ClientToolbox.DeleteAsync(DiscordAPI.Message(channelId, messageId));

            return(response.StatusCode == System.Net.HttpStatusCode.NoContent);
        }
Пример #2
0
        public static async Task <bool> DeleteOwnReaction(string channelId, string messageId, SimpleEmoji emoji)
        {
            var response = await ClientToolbox.DeleteAsync(DiscordAPI.MessageReaction(channelId, messageId, emoji.ToString()));

            return(response.StatusCode == System.Net.HttpStatusCode.NoContent);
        }
Пример #3
0
        public static async Task <bool> DeleteMessage(string channelId, string messageId)
        {
            var response = await ClientToolbox.DeleteAsync(DiscordAPI.Message(channelId, messageId));

            return(response.StatusCode == System.Net.HttpStatusCode.NoContent);
        }