GuildChannel
Namespace: Discord
Inherits from
pageDiscordChannelProperties
Name | Description | Type |
Guild | The guild this channel is part of | MinimalGuild |
Position | It's position within the guild | uint |
ParentId | ID of the category containing it (if there is any) | ulong? |
PermissionOverwrites | A list of permission overwrites for the channel | IReadOnlyList<DiscordPermissionOverwrite> |
Methods
Update
Updates the object's information.
Modify
Modifies the channel.
Parameters
Name | Description | Type |
properties | Changes you wanna make to the channel | GuildChannelProperties |
AddPermissionOverwrite
Adds a permission overwrite to the channel.
Parameters
Name | Description | Type |
affectedId | The role/user this overwrite affects | ulong |
type | The type of overwrite (role/user) | PermissionOverwriteType |
allow | Permissions to grant the user | DiscordPermission |
deny | Permissions to deny the user | DiscordPermission |
RemovePermissionOverwrite
Removes a permission overwrite from the channel.
Parameters
Name | Description | Type |
affectedId | ID of the role/user the overwrite affects | ulong |
AsMessagable
Returns you a string which can be used within messages to reference the channel.
Returns
string
Last updated