Create a new Interaction Method Handler
Usually SnowTransfer creates a method handler for you, this is here for completion
You can access the methods listed via client.interaction.method
, where client
is an initialized SnowTransfer instance
request handler that calls the rest api
Batch edits permissions for all commands in a guild. Takes an Array of partial guild application command permission objects. You can only add up to 10 permission overwrites for a command
The Id of the application
The Id of the guild
New application command permissions data Array
An Array of guild application command permission objects
Takes a list of application commands, overwriting existing commands that are registered globally for this application. Updates will be available in all guilds after 1 hour
The Id of the application
Array of commands
An Array of application command objects
Takes a list of application commands, overwriting existing commands for the guild
The Id of the application
The Id of the guild
Array of commands
An Array of application command objects
Create a new global command. New global commands will be available in all guilds after 1 hour
The Id of the application
The command data
An application command object
Create a followup message for an Interaction
The Id of the application
The token of the interaction
Message data
A message object
Create a new guild command. New guild commands will be available in the guild immediately.
The Id of the application
The Id of the guild
Command data
An application command object
Create a response to an Interaction
The Id of the interaction
The token of the interaction
Response data
Resolves the Promise on successful execution
Deletes a global command
The Id of the application
The Id of the command
Resolves the Promise on successful execution
Deletes a followup message for an Interaction
The Id of the application
The token of the interaction
The Id of the message
Resolves the Promise on successful execution
Delete a guild command
The Id of the application
The Id of the guild
The Id of the command
Resolves the Promise on successful execution
Deletes the initial Interaction response
The Id of the application
The token of the interaction
Resolves the Promise on successful execution
Edit a global command. Updates will be available in all guilds after 1 hour
The Id of the application
The Id of the command
The command data
An application command object
Edits a followup message for an Interaction
The Id of the application
The token of the interaction
The Id of the message
The new message data
A message object
Edit a guild command. Updates for guild commands will be available immediately.
The Id of the application
The Id of the guild
The Id of the command
New command data
An application command object
Edits command permissions for a specific command for your application in a guild. You can only add up to 10 permission overwrites for a command.
The Id of the application
The Id of the guild
The Id of the command
New application command permissions data
A guild application command permission object
Edits the initial Interaction response
The Id of the application
The token of the interaction
New response data
A message object
Fetch a global command for your application
The Id of the application
The Id of the command
An application command object
Fetch all global commands for your application
The Id of the application
An Array of application command objects
Get a followup message for an Interaction
The Id of the application
The token of the interaction
The Id of the message
A message object
Fetch a guild command for your application
The Id of the application
The Id of the guild
The Id of the command
An application command object
Fetches command permissions for a specific command for your application in a guild
The Id of the application
The Id of the guild
The Id of the command
A guild application command permission object
Fetch all of the guild commands for your application for a specific guild.
The Id of the application
The Id of the guild
An Array of application command objects
Fetches command permissions for all commands for your application in a guild
The Id of the application
The Id of the guild
An Array of guild application command permission objects
Returns the initial Interaction response
The Id of the application
The token of the interaction
A message object
Generated using TypeDoc
Methods for interacting with slash command specific endpoints