CommandInteraction class Null safety

Inheritance

Constructors

CommandInteraction(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)
CommandInteraction.fromPayload(dynamic payload)
factory

Properties

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

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
getBooleanOrFail(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 or null if the command has the designed option
getChannelOrFail<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
getIntegerOrFail(String optionName) int
Returns an int or null if the command has the designed option
getMember(String optionName) GuildMember?
Returns an instance of GuildMember if the command has the designed option
getMemberOrFail(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 or null if the command has the designed option
getRoleOrFail(String optionName) Role
Returns an instance of Role if the command has the designed option
getString(String optionName) String?
Returns an String or null if the command has the designed option
getStringOrFail(String optionName) String
Returns an String if the command has the designed option
getUser(String optionName) User?
Returns an instance of User or null if the command has the designed option
getUserOrFail(String optionName) User
Returns an instance of User if the command has the designed option
Responds to this by an ModalBuilder
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
reply({String? content, List<EmbedBuilder>? embeds, List<RowBuilder>? components, 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, List<RowBuilder>? components}) Future<Interaction>
Edit original response to interaction
inherited

Operators

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