ActivityBuilder class

Allows to change status and presence of bot

Implemented types

Constructors

ActivityBuilder(String name, ActivityType type, {String? url})
Creates new instance of ActivityBuilder
ActivityBuilder.game(String name)
Sets activity to game
factory
ActivityBuilder.listening(String name)
Sets activity to listening
factory
ActivityBuilder.streaming(String name, String url)
Sets activity to streaming
factory
ActivityBuilder.watching(String name)
Sets activity to watching
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The activity name.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ActivityType
The activity type.
latefinal
url String?
The game URL, if provided.
getter/setter pair

Methods

build() RawApiMap
Returns built response for api
override
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