GuildCommandInteraction class
- Inheritance
-
- Object
- Interaction
- CommandInteraction
- GuildCommandInteraction
Constructors
-
GuildCommandInteraction(Snowflake id, String? label, Snowflake applicationId, int version, int typeId, String token, Snowflake? userId, Snowflake? guildId, PartialMessage<
PartialChannel> ? message, String identifier, Snowflake? channelId, Map<String, dynamic> data, Map<String, dynamic> params) - GuildCommandInteraction.fromPayload(dynamic payload)
-
factory
Properties
- applicationId → Snowflake
-
Get application id Snowflake of this
no setterinherited
- channel → TextBasedChannel?
-
Get channel TextBasedChannel of this
no setteroverride
- client → MineralClient
-
Represents your Discord application, the client is null until the ReadyEvent is issued
no setterinherited
-
data
→ Map<
String, dynamic> -
Get data of this
no setterinherited
- guild → Guild?
-
Get guild Guild of this
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
Get id Snowflake of this
no setterinherited
- identifier → String
-
Get identifier of this
no setterinherited
- label → String?
-
Get label String of this
no setterinherited
- member → GuildMember?
-
Get member GuildMember of this
no setterinherited
-
message
→ PartialMessage<
PartialChannel> ? -
Get message
PartialMessage
of thisno setterinherited -
params
→ Map<
String, dynamic> -
Get params of this
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String
-
Get token String of this
no setterinherited
- type → InteractionType
-
Get type InteractionType of this
no setterinherited
- user → User
-
Get user User of this
no setterinherited
- version → int
-
Get version int of this
no setterinherited
Methods
-
deferredReply(
{bool private = false}) → 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
-
getChannel<
T extends GuildChannel> (String optionName) → T -
Returns an instance of PartialTextChannel or null if the command has the designed option
inherited
-
getChoice<
T> (String optionName) → T? -
Returns an
T
if the command has the designed optioninherited -
getMember(
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
-
getUser(
String optionName) → User? -
Returns an instance of User or null if the command has the designed option
inherited
-
getValue<
T> (String key, {T? defaultValue}) → T -
Returns an instance of
T
or null if the command has the designed optioninherited -
modal(
ModalBuilder modal) → Future< Interaction> -
Responds to this by an ModalBuilder
inherited
-
noReply(
{bool private = false}) → Future< void> -
Shows no response (and error)
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