DiscordMessageComponent class abstract

Base class for Discord Components.

Take advantage of the DiscordMessageComponentType enum to determine the type of component, and cast the object as the right object

Implementers

Constructors

DiscordMessageComponent({required int type})
DiscordMessageComponent.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
The type of component
final
typeAsEnum DiscordMessageComponentType
no setter

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

componentsEntry → const String
typeEntry → const String