mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
feat: add support for autocomplete interactions (#6672)
Co-authored-by: Suneet Tipirneni <suneettipirneni@icloud.com>
This commit is contained in:
@@ -971,7 +971,13 @@ exports.ApplicationCommandPermissionTypes = createEnum([null, 'ROLE', 'USER']);
|
||||
* @typedef {string} InteractionType
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-type}
|
||||
*/
|
||||
exports.InteractionTypes = createEnum([null, 'PING', 'APPLICATION_COMMAND', 'MESSAGE_COMPONENT']);
|
||||
exports.InteractionTypes = createEnum([
|
||||
null,
|
||||
'PING',
|
||||
'APPLICATION_COMMAND',
|
||||
'MESSAGE_COMPONENT',
|
||||
'APPLICATION_COMMAND_AUTOCOMPLETE',
|
||||
]);
|
||||
|
||||
/**
|
||||
* The type of an interaction response:
|
||||
@@ -992,6 +998,7 @@ exports.InteractionResponseTypes = createEnum([
|
||||
'DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE',
|
||||
'DEFERRED_MESSAGE_UPDATE',
|
||||
'UPDATE_MESSAGE',
|
||||
'APPLICATION_COMMAND_AUTOCOMPLETE_RESULT',
|
||||
]);
|
||||
/* eslint-enable max-len */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user