Discord Presence - nuclearace/SwiftDiscord GitHub Wiki

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
}