Skip to content

Discord Role

Erik Little edited this page Oct 18, 2016 · 2 revisions

Roles are represented as a DiscordRole struct. The permissions are stored in a bit field.

public struct DiscordRole {
	public let id: String

	public var color: Int
	public var hoist: Bool
	public var managed: Bool
	public var mentionable: Bool
	public var name: String
	public var permissions: Int
	public var position: Int
}
Clone this wiki locally