-
Notifications
You must be signed in to change notification settings - Fork 23
Discord Presence
Erik Little edited this page Oct 17, 2016
·
1 revision
Presences are represented as a DiscordPresence struct.
public struct DiscordPresence {
public let guildId: String
public let user: DiscordUser
public var game: DiscordGame?
public var nick: String
public var roles: [String]
public var status: DiscordPresenceStatus
}
With the status being an enum.
public enum DiscordPresenceStatus {
case idle
case offline
case online
}
And the game being a struct.
public struct DiscordGame {
public let name: String
}