GlobalCommandInteraction class

Inheritance

Constructors

GlobalCommandInteraction(Snowflake id, String? label, Snowflake applicationId, int version, int typeId, String token, Snowflake? userId, Snowflake? guildId, String identifier, Snowflake? channelId, Map<String, dynamic> data, Map<String, dynamic> params)
GlobalCommandInteraction.fromPayload(dynamic payload)
factory

Properties

applicationId Snowflake
no setterinherited
channel PartialChannel?
no setteroverride
data Map<String, dynamic>
no setterinherited
guild Guild?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
no setterinherited
identifier String
no setterinherited
label String?
no setterinherited
member GuildMember?
no setterinherited
params Map<String, dynamic>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
no setterinherited
type InteractionType
no setterinherited
user User
no setterinherited
version int
no setterinherited

Methods

deferredReply() Future<Interaction>
Responds to this by a deferred Message (Show a loading state to the user)
inherited
delete() Future<void>
Delete original response to interaction
inherited
getBoolean(String optionName) bool?
Returns an bool or null if the command has the designed option
inherited
getBooleanOrFail(String optionName) bool
Returns an bool if the command has the designed option
inherited
getChannel<T extends PartialTextChannel>(String optionName) → T?
Returns an instance of PartialTextChannel or null if the command has the designed option
inherited
getChannelOrFail<T extends PartialTextChannel>(String optionName) → T
Returns an instance of PartialTextChannel if the command has the designed option
inherited
getChoice<T>(String optionName) → T?
Returns an T if the command has the designed option
inherited
getInteger(String optionName) int?
Returns an int if the command has the designed option
inherited
getIntegerOrFail(String optionName) int
Returns an int or null if the command has the designed option
inherited
getMember(String optionName) GuildMember?
Returns an instance of GuildMember if the command has the designed option
inherited
getMemberOrFail(String optionName) GuildMember
Returns an instance of GuildMember if the command has the designed option
inherited
getMentionable(String optionName) → dynamic
Returns an value if the command has the designed option
inherited
getRole(String optionName) Role?
Returns an instance of Role or null if the command has the designed option
inherited
getRoleOrFail(String optionName) Role
Returns an instance of Role if the command has the designed option
inherited
getString(String optionName) String?
Returns an String or null if the command has the designed option
inherited
getStringOrFail(String optionName) String
Returns an String if the command has the designed option
inherited
getUser(String optionName) User?
Returns an instance of User or null if the command has the designed option
inherited
getUserOrFail(String optionName) User
Returns an instance of User if the command has the designed option
inherited
Responds to this by an ModalBuilder
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reply({String? content, List<EmbedBuilder>? embeds, ComponentBuilder? components, List<AttachmentBuilder>? attachments, bool? tts, bool? private}) Future<Interaction>
Responds to this by an Message
inherited
toString() String
A string representation of this object.
inherited
updateReply({String? content, List<EmbedBuilder>? embeds, ComponentBuilder? components, List<AttachmentBuilder>? attachments}) Future<Interaction>
Edit original response to interaction
inherited

Operators

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