ActivityButton class

Activity Button structure

When received over the gateway, the buttons field is an array of strings, which are the button labels. Bots cannot access a user's activity button URLs. When sending, the buttons field must be an array of the below object:

https://discord.com/developers/docs/topics/gateway#activity-object-activity-buttons

Constructors

ActivityButton({required String label, String? url})
Constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
the text shown on the button (1-32 characters)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
the url opened when clicking the button (1-512 characters)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

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