IInteractionsEndpoints class abstract

Constructors

IInteractionsEndpoints()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

acknowledge(String token, String interactionId, bool hidden, int opCode) Future<void>
Acknowledges interaction that response can be sent within next 15 mins. Response will be ephemeral if hidden is set to true. To response to different interaction types (slash command, button...) opCode is used.
bulkOverrideGlobalCommands(Snowflake applicationId, Iterable<SlashCommandBuilder> builders) Stream<ISlashCommand>
Bulk overrides global commands. To delete all apps global commands pass empty list to builders
bulkOverrideGuildCommands(Snowflake applicationId, Snowflake guildId, Iterable<SlashCommandBuilder> builders) Stream<ISlashCommand>
Bulk overrides global commands. To delete all apps global commands pass empty list to builders
bulkOverrideGuildCommandsPermissions(Snowflake applicationId, Snowflake guildId, Iterable<SlashCommandBuilder> builders) Future<void>
Overrides permissions for guild commands
deleteFollowup(String token, Snowflake applicationId, Snowflake messageId) Future<void>
Deletes followup IMessage with given id
deleteGlobalCommand(Snowflake applicationId, Snowflake commandId) Future<void>
Deletes global command with given commandId
deleteGuildCommand(Snowflake applicationId, Snowflake commandId, Snowflake guildId) Future<void>
Deletes guild command with given commandId]
deleteOriginalResponse(String token, Snowflake applicationId, String interactionId) Future<void>
Deletes original interaction response
editFollowup(String token, Snowflake applicationId, Snowflake messageId, MessageBuilder builder) Future<IMessage>
Edits followup IMessage with given messageId
editGlobalCommand(Snowflake applicationId, Snowflake commandId, SlashCommandBuilder builder) Future<ISlashCommand>
Edits global command with given commandId using builder
editGuildCommand(Snowflake applicationId, Snowflake commandId, Snowflake guildId, SlashCommandBuilder builder) Future<ISlashCommand>
Edits single guild command with given commandId
editOriginalResponse(String token, Snowflake applicationId, MessageBuilder builder) Future<IMessage>
Edits original interaction response using builder
fetchCommandOverrides(Snowflake commandId, Snowflake guildId) Future<ISlashCommandPermissionOverrides>
Fetch the command permission overrides for a command in a guild.
fetchFollowup(String token, Snowflake applicationId, Snowflake messageId) Future<IMessage>
Fetches followup message from API
fetchGlobalCommand(Snowflake applicationId, Snowflake commandId) Future<ISlashCommand>
Fetches global command with given commandId
fetchGlobalCommands(Snowflake applicationId, {bool withLocales = true}) Stream<ISlashCommand>
Fetches global commands of application
fetchGuildCommand(Snowflake applicationId, Snowflake commandId, Snowflake guildId) Future<ISlashCommand>
Fetches single guild command with given commandId
fetchGuildCommands(Snowflake applicationId, Snowflake guildId, {bool withLocales = true}) Stream<ISlashCommand>
Fetches all commands for given guildId
fetchOriginalResponse(String token, Snowflake applicationId, String interactionId) Future<IMessage>
Fetch original interaction response.
fetchPermissionOverrides(Snowflake guildId) Future<Iterable<ISlashCommandPermissionOverrides>>
Fetch the permission overrides for all commands in a guild. The global overrides for that guild have an ID which is equal to the application ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
respondCreateResponse(String token, String interactionId, MessageBuilder builder, bool hidden, int respondOpCode) Future<void>
Respond to interaction by creating response. Used when interaction wasn't acked before.
respondEditOriginal(String token, Snowflake applicationId, MessageBuilder builder, bool hidden) Future<void>
Respond to interaction by editing original response. Used when interaction was acked before.
respondModal(String token, String interactionId, ModalBuilder builder) Future<void>
Respond to interaction with modal
respondToAutocomplete(Snowflake interactionId, String token, List<ArgChoiceBuilder> builders) Future<void>
Responds to autocomplete interaction
sendFollowup(String token, Snowflake applicationId, MessageBuilder builder, {bool hidden = false}) Future<IMessage>
Sends followup for interaction with given token. IMessage will be created with builder
toString() String
A string representation of this object.
inherited

Operators

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