jsw
DIAdiscord.js - Imagine an app
•Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
Hi my bot crashes after running a command that takes about 15 minutes to finish? The command updates the message according to the 'game state'.
this is the error code
and it crashes in this part of the code
the clahsEventManager is a function that runs the callback when there's a message received via socket.io
I'll also upload my full code later.
35 replies
DIAdiscord.js - Imagine an app
•Created by jsw on 12/22/2024 in #djs-questions
Send message to specific channel
Hi i'm trying to get a list of textchannels to log to. But when i use client.channels.fetch i keep getting 'null'?
here's my code.
the config.SEXY_LOG_CHANNELS is an env var with the channels id seperated by commas.
38 replies
DIAdiscord.js - Imagine an app
•Created by jsw on 12/14/2024 in #djs-questions
How do i delete a followup to a deferreply using a button?
I currently have
await interaction.deleteReply()
in the button callback but it gives the error error: Uncaught (in promise) DiscordAPIError[10015]: Unknown Webhook
.10 replies
DIAdiscord.js - Imagine an app
•Created by jsw on 12/10/2024 in #djs-questions
check if bot is user installed (or check if dm permission without sending a message)
Hi is there a way to check if the bot is user-installed? I'd like to make a reminders userbot command that sends you a dm when the reminder's due. The only solution i've seen so far is to send a dm to someone but i'd prefer not double dms (one when running the command and one when the reminder's finished.)
6 replies