#output user input for slash command
22 messages · Page 1 of 1 (latest)
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
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
You commented out that if statement of isChatInputCommand(); you need to handle both as they're two separate interaction types
oh sorry meant to take the "//" off, i still get "interaction.reply is not a function
where do you get that error from?
What’s line 24 of index.js
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?
i tried searching in the FAQ but didnt find anything relating to i
so if i cant use interaction.reply with autocomplete is there a different way?
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
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!
reply does not exist on the AutoCompleteInteraction
Squid went over this #1090102897565499503 message
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