CommandInteraction class
- Inheritance
-
- Object
- Interaction
- CommandInteraction
Constructors
Properties
- applicationId → Snowflake
-
no setterinherited
- channel → TextBasedChannel?
-
no setter
-
data
↔ Map<
String, dynamic> -
getter/setter pair
- guild → Guild?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
no setterinherited
- identifier → String
-
no setter
- member → GuildMember?
-
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
-
getBoolean(
String optionName) → bool? - Returns an bool if the command has the designed option
-
getChannel<
T extends PartialTextChannel> (String optionName) → T? - Returns an instance of PartialTextChannel if the command has the designed option
-
getChoice<
T> (String optionName) → T? -
Returns an
T
if the command has the designed option -
getInteger(
String optionName) → int? - Returns an int if the command has the designed option
-
getMember(
String optionName) → GuildMember? - Returns an instance of GuildMember if the command has the designed option
-
getMentionable(
String optionName) → dynamic - Returns an value if the command has the designed option
-
getRole(
String optionName) → Role? - Returns an instance of Role if the command has the designed option
-
getString(
String optionName) → String? - Returns an String if the command has the designed option
-
getUser(
String optionName) → User? - Returns an instance of User if the command has the designed option
-
modal(
ModalBuilder modal) → Future< void> -
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, List<RowBuilder> ? components, bool? tts, bool? private}) → Future<void> -
Responds to this by an Message
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited