/// <summary> /// Adds/edits a permission overwrite to a channel /// </summary> /// <param name="channelId">ID of the channel</param> /// <param name="overwrite">The permission overwrite to add/edit</param> public static DiscordPermissionOverwrite AddPermissionOverwrite(this DiscordClient client, ulong channelId, ulong affectedId, PermissionOverwriteType type, DiscordPermission allow, DiscordPermission deny) { return(client.AddPermissionOverwriteAsync(channelId, affectedId, type, allow, deny).GetAwaiter().GetResult()); }