DiscordPermissionOverwrite
public struct DiscordPermissionOverwrite : Encodable
Represents a permission overwrite for a channel.
The allow
and deny
properties are bit fields.
-
The snowflake id of this permission overwrite.
Declaration
Swift
public let id: OverwriteID
-
The type of this overwrite.
Declaration
Swift
public let type: DiscordPermissionOverwriteType
-
The permissions that this overwrite is allowed to use.
Declaration
Swift
public var allow: DiscordPermission
-
The permissions that this overwrite is not allowed to use.
Declaration
Swift
public var deny: DiscordPermission
-
Creates a new DiscordPermissionOverwrite
Declaration
Swift
public init(id: OverwriteID, type: DiscordPermissionOverwriteType, allow: DiscordPermission, deny: DiscordPermission)
Parameters
id
The id of this overwrite
type
The type of this overwrite
allow
The permissions allowed
deny
The permissions denied