-
Notifications
You must be signed in to change notification settings - Fork 25
Discord Permission Overwrite
Erik Little edited this page Oct 17, 2016
·
1 revision
Permission overwrites (per channel permissions) are represented as a DiscordPermissionOverwrite struct.
public struct DiscordPermissionOverwrite {
public let id: String
public let type: DiscordPermissionOverwriteType
public var allow: Int // Bit field
public var deny: Int // Bit field
}
With the type being an enum.
public enum DiscordPermissionOverwriteType : String {
case role = "role"
case member = "member"
}