public static async Task <DiscordGroup> LeaveGroupAsync(this DiscordClient client, ulong groupId) { return((DiscordGroup)await client.DeleteChannelAsync(groupId)); }
/// <summary> /// Deletes a channel /// </summary> /// <param name="channelId">ID of the channel</param> /// <returns>The deleted channel</returns> public static DiscordChannel DeleteChannel(this DiscordClient client, ulong channelId) { return(client.DeleteChannelAsync(channelId).GetAwaiter().GetResult()); }