/// <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)); }
/// <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)); }