DiscordActivityType enum

Enum of Activity Types

The streaming type currently only supports Twitch and YouTube. Only https://twitch.tv/ and https://www.youtube.com/ urls will work.

Inheritance

Constructors

DiscordActivityType()
const

Values

game → const DiscordActivityType

ID: 0 Name: Game Format: Playing {name} Example: "Playing Rocket League"

streaming → const DiscordActivityType

ID: 1 Name: Streaming Format: Streaming {details} Example: "Streaming Rocket League"

listening → const DiscordActivityType

ID: 2 Name: Listening Format: Listening to {name} Example: "Listening to Spotify"

watching → const DiscordActivityType

ID: 3 Name: Watching Format: Watching {name} Example: "Watching YouTube Together"

custom → const DiscordActivityType

ID: 4 Name: Custom Format: {emoji} {name} Example: ":smiley: I am cool"

competing → const DiscordActivityType

ID: 5 Name: Competing Format: Competing in {name} Example: "Competing in Arena World Champions"

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<DiscordActivityType>
A constant List of the values in this enum, in order of their declaration.