예제 #1
0
 /// <summary>
 /// Deletes this overwrite.
 /// If successful, changes will be immediately reflected for the channel this overwrite was in.
 /// <para>Requires <see cref="DiscordPermission.ManageRoles"/>.</para>
 /// </summary>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task Delete()
 {
     return(http.DeleteChannelPermission(ChannelId, Id));
 }
예제 #2
0
 /// <summary>
 /// Deletes a permission overwrite.
 /// <para>Requires <see cref="DiscordPermission.ManageRoles"/>.</para>
 /// </summary>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task DeletePermission(Snowflake memberOrRoleId)
 {
     return(http.DeleteChannelPermission(Id, memberOrRoleId));
 }