DiscordRole
public struct DiscordRole : Encodable, Equatable
Represents a Discord role.
-
The snowflake id of the role.
Declaration
Swift
public let id: RoleID
-
The display color of this role.
Declaration
Swift
public var color: Int
-
Whether this role should be hoisted.
Declaration
Swift
public var hoist: Bool
-
Whether this role is managed.
Declaration
Swift
public var managed: Bool
-
Whether this role is mentionable.
Declaration
Swift
public var mentionable: Bool
-
The name of this role.
Declaration
Swift
public var name: String
-
The permissions this role has.
Declaration
Swift
public var permissions: DiscordPermission
-
The position of this role.
Declaration
Swift
public var position: Int
-
Whether two roles are the same.
Declaration
Swift
public static func ==(lhs: DiscordRole, rhs: DiscordRole) -> Bool