IInteractions class abstract

Constructors

IInteractions.create(InteractionBackend backend)
factory

Properties

backend InteractionBackend
no setter
client → INyxx
Reference to client
no setter
commands Iterable<ISlashCommand>
Commands registered by bot
no setter
events IEventController
no setter
hashCode int
The hash code for this object.
no setterinherited
interactionsEndpoints IInteractionsEndpoints
All interaction endpoints that can be accessed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteGlobalCommand(Snowflake commandId) Future<void>
Deletes global command
deleteGlobalCommands() Future<void>
Deletes all global commands
deleteGuildCommand(Snowflake commandId, Snowflake guildId) Future<void>
Deletes guild command
deleteGuildCommands(List<Snowflake> guildIds) Future<void>
Deletes all guild commands for the specified guilds
fetchGlobalCommands({bool withLocales = true}) Stream<ISlashCommand>
Fetches all global bots command
fetchGuildCommands(Snowflake guildId, {bool withLocales = true}) Stream<ISlashCommand>
Fetches all guild commands for given guild
getGlobalOverridesInGuild(Snowflake guildId) → Cacheable<Snowflake, ISlashCommandPermissionOverrides>
Returns the global overrides for commands in a guild.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerButtonHandler(String id, ButtonInteractionHandler handler) → void
Registers callback for button event for given id
registerChannelMultiSelectHandler(String id, ChannelMultiSelectInteractionHandler handler) → void
Register callback for channel dropdown event for given id.
registerMentionableMultiSelectHandler(String id, MentionableMultiSelectInteractionHandler handler) → void
Register callback for mentionable dropdown event for given id.
registerMultiselectHandler(String id, MultiselectInteractionHandler handler) → void
Register callback for dropdown event for given id
registerRoleMultiSelectHandler(String id, RoleMultiSelectInteractionHandler handler) → void
Register callback for role dropdown event for given id.
registerSlashCommand(SlashCommandBuilder slashCommandBuilder) → void
Allows to register new SlashCommandBuilder
registerSlashCommandHandler(String id, SlashCommandHandler handler) → void
Register callback for slash command event for given id
registerUserMultiSelectHandler(String id, UserMultiSelectInteractionHandler handler) → void
Register callback for user dropdown event for given id.
sync({ICommandsSync syncRule = const ManualCommandSync()}) Future<void>
Syncs command builders with discord immediately. Warning: Client could not be ready at the function execution. Use syncOnReady for proper behavior
syncOnReady({ICommandsSync syncRule = const ManualCommandSync()}) → void
Syncs commands builders with discord after client is ready.
toString() String
A string representation of this object.
inherited

Operators

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