Ejemplo n.º 1
0
 public static async Task <DiscordGroup> LeaveGroupAsync(this DiscordClient client, ulong groupId)
 {
     return((DiscordGroup)await client.DeleteChannelAsync(groupId));
 }
Ejemplo n.º 2
0
 /// <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());
 }