Discore
Show / Hide Table of Contents

Method DeleteChannelPermission

| Improve this Doc View Source

DeleteChannelPermission(Snowflake, Snowflake)

Deletes a guild channel permission overwrite for a user or role.

Requires ManageRoles.

Declaration
public Task DeleteChannelPermission(Snowflake channelId, Snowflake overwriteId)
Parameters
Type Name Description
Snowflake channelId
Snowflake overwriteId
Returns
Type Description
Task
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

DeleteChannelPermission(DiscordOverwrite)

Deletes a guild channel permission overwrite for a user or role.

Requires ManageRoles.

Declaration
public Task DeleteChannelPermission(DiscordOverwrite overwrite)
Parameters
Type Name Description
DiscordOverwrite overwrite
Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException

Thrown if overwrite is null.

DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX