#output user input for slash command

22 messages · Page 1 of 1 (latest)

silver pewter
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

robust cipher
#

I assume you want to reach the isChatInputCommand() part? Currently you are returning at the beginning of the interactionCreate event if the received interaction is not an Autocomplete interaction

turbid storm
#

yaaa, i just cant seem to figure out what i gotta change

#

i get to here then it errors with: interaction.reply is not a function because its not getting the required parameters

pseudo grail
turbid storm
#

oh sorry meant to take the "//" off, i still get "interaction.reply is not a function

hasty vault
#

where do you get that error from?

turbid storm
hasty vault
#

What’s line 24 of index.js

turbid storm
hasty vault
#

The AutoCompleteInteraction doesn’t have a reply method. You commented out the typeguard for a ChatInputCommandInteraction, which reply does exist on as well as context menus and message component interactions

#

didn’t someone already go over this in another thread yesterday?

turbid storm
#

i tried searching in the FAQ but didnt find anything relating to i

hasty vault
#

it wouldn’t have a solution to this

#

check my message above

turbid storm
#

so if i cant use interaction.reply with autocomplete is there a different way?

hasty vault
#

you can only use interaction.respond with autocomplete

#

interaction.reply can only be used with interactions such as slash commands, context menus or message component interactions

digital houndBOT
#

Responding to interactions:
#reply immediately respond with a message
#update immediately update the original message (buttons, select menus)
#showModal immediately show a modal (cannot be deferred)
#deferReply/Update respond later (up to 15 minutes)
#followUp post an additional message

The initial response has to happen within 3s of receiving the interaction!

hasty vault
#

reply does not exist on the AutoCompleteInteraction

turbid storm
#

yes i get that, im just trying to figure out if there is a way to do a reply to the channel with the autocomplete and how