Get Guild Rules Channel
Closing modal after submitting
Sweeper interval
How to get title of the modal in Modals.ts (handler file)
Bot changes nickname, and after the nickname reset itself.
application did not reply
message.reply() function takes more than 10 minutes to send message
Typescript bot using 14.11.0 claims unknown interaction, fails to compile with 14.12.1
Discord.js@14.11.0
, until I updated it recently. I was working on simplifying some Embed code when, for some reason, I began to receive a console error any time I used any slash command. The bot fails/refuses to respond to any command, including ones that I am completely certain that I did not modify. I did not modify the command names or parameters of any command. The error I received is attached. My initial guess was that Discord updated its API, and that I needed to update Discord.js. Indeed, running npm outdated
indicated that, among other things, discord.js should be updated to 14.12.1. So, I ran npm update --save discord.js
. I did not update any packages that did not need to be updated when I did this. When I attempted to reboot the bot using tsc && node dist/bot.js
, I received nearly 100 errors from a file named ../node_modules/discord.js/typings/index.d.ts:1175
. All of them appear to be various forms of "unexpected / incorrect syntax"; I can provide the errors if necessary. When I git stash
ed my code to revert to a version that I know works, I continued to receive the errors from discord.js
when attempting to compile the typescript.
The recommended advice was to update typescript
to ^5.0.0
to accommodate changes made to Discordjs@14.12.X
, but updating Typescript to latest (5.1.6
). Despite updating it (and all other packages) to their latest version, I continue to get errors from the same tile when I attempt to tsc
.
...Bot posts randomly 1 - 3 welcome messages for the same member that already joined.
interaction has already been answered

HELP
ratelimit
HELP
A typeguard to check if the received message is from inside a guild.
@discordjs/core
package along with it's other subpackages and discord-api-types
for my bot.
Based off of the util functions from API Types. I wanted to check if the message is from a guild or not using a typeguard. Rather than checking if both guild_id
and member
properties exist using if functions everytime.
After reading the docs. I realized the guild_id
property only exists when the message is from a guild. (obviously)...Bot no register slash commands
Building .exe file with pkg results in "Failed to make bytecode"
pkg . --targets node18-win-x64
and below configuration:
```js
"pkg": {
"scripts": "commands/*/.js"
}...Made a command for user information, gives an error
Getting data from Oauth2
trying to create a message counting bot