#Any ideas as to why the command ` test`
1 messages · Page 1 of 1 (latest)
No matter what I attempt to do, I simply cannot get InteractionCreate to ever emit an event of any kind.
Using version 14.9.0 of the library.
The command is registered on the bot within the server and appears in autocomplete when typing it.
After Client ready, it logs nothing.
@sweet urchin: Sorry to tag you directly, but would you have any ideas on this or where I should escalate this?
does the ready event emits?
Yep.
That's the "Client ready" message in the log.
I've tested it with the MessageCreated event and can see and send messages.
But any time I create a button and attempt to capture the interaction, nothing is emitted from literally any of the available emitters.
I've tried collectors as well to dead silence.
can you do console.log(`Logged in as ${client.user.tag} - ${client.user.id}`)
in the ready event
Sure.
instead of your current console.log
Yeah. I get the CLIENT_ID that's associated with the bot and that's registered with the Discord Server.
The only thing I can think of is something server side in terms of configuration…
I've tried a version of the client with all of the intents enabled and still nothing.
I've enabled Administrator permissions on the bot and used the invite link in the code above with the CLIENT_ID substituted in.
Nothing I try will get any InteractionCreate event to emit.
Even when emitting for the Raw and Debug events, nothing appears when I click the button.
Try this in your interactionCreate event
if(interaction.isButton()) { console.log("button works"); interaction.deferUpdate(); }