Interaction class
Constructors
-
Interaction(Snowflake _id, String? _label, Snowflake _applicationId, int _version, int _typeId, String _token, Snowflake? _userId, Snowflake? _guildId, PartialMessage<
PartialChannel> ? _message) - Interaction.from({required dynamic payload, required PartialChannel? channel})
-
factory
Properties
- applicationId → Snowflake
-
Get application id Snowflake of this
no setter
- guild → Guild?
-
Get guild Guild of this
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
Get id Snowflake of this
no setter
- label → String?
-
Get label String of this
no setter
- member → GuildMember?
-
Get member GuildMember of this
no setter
-
message
→ PartialMessage<
PartialChannel> ? -
Get message
PartialMessage
of thisno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String
-
Get token String of this
no setter
- type → InteractionType
-
Get type InteractionType of this
no setter
- user → User
-
Get user User of this
no setter
- version → int
-
Get version int of this
no setter
Methods
-
deferredReply(
{bool private = false}) → Future< Interaction> - Responds to this by a deferred Message (Show a loading state to the user)
-
delete(
) → Future< void> - Delete original response to interaction
-
modal(
ModalBuilder modal) → Future< Interaction> - Responds to this by an ModalBuilder
-
noReply(
{bool private = false}) → Future< void> - Shows no response (and error)
-
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
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited