ActivityBuilder class Null safety

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The activity name.
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type ActivityType
The activity type.
late, final
url String?
The game URL, if provided.
read / write

Methods

build() RawApiMap
Returns built response for api
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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