/// <summary> /// Edits the permissions of this overwrite. /// If successful, changes will be immediately reflected for this instance. /// <para>Requires <see cref="DiscordPermission.ManageRoles"/>.</para> /// </summary> /// <exception cref="DiscordHttpApiException"></exception> public Task Edit(DiscordPermission allow, DiscordPermission deny) { return(http.EditChannelPermissions(ChannelId, Id, allow, deny, Type)); }
/// <summary> /// Adds/edits a guild member or role permission overwrite for this channel. /// <para>Requires <see cref="DiscordPermission.ManageRoles"/>.</para> /// </summary> /// <param name="memberOrRoleId">The ID of the member or role this overwrite will change permissions for.</param> /// <param name="overwriteType">Whether the permissions should affect a member or role.</param> /// <param name="allow">Specifically allowed permissions.</param> /// <param name="deny">Specifically denied permissions.</param> /// <exception cref="DiscordHttpApiException"></exception> public Task EditPermissions(Snowflake memberOrRoleId, DiscordOverwriteType overwriteType, DiscordPermission allow, DiscordPermission deny) { return(http.EditChannelPermissions(Id, memberOrRoleId, allow, deny, overwriteType)); }