Discord slash command(s) deleting itself. (Sorry closed last post too early)
Hi.
Sorry, I marked my last post as solved too early.
I cannot figure out why when the bot launches and the slash commands are re-added, after the first-use of each command, they just disappear....
Why might a slash command delete itself after one use?
Hi.
I just created a command for my bot which works as expected the first time, and then just deletes itself from the registry afterwards.
I can only think the issue comes from sharding, since I recently created the sharding manager to experiment and have it ready....
Bot tries to reply to a system message.. but what is it?
What would the system message even be? I thought only users get these DMs from Discord 'SYSTEM' or is it bots too? If so, that'd explain it. Also, not really sure this is a discord.js thing, I just don't know where else to ask it.
GuildForumTag not working on discord.js v14.16.3 on my API
It shows null even though the user has a tag.
error message and i cant solve it
there is a error that i cant fix, idk why, but can the dev community please help me 😭🙏
- included files:
- Screenshot of the explorer (files)
- interactionCreate.js file...
How to run recommended ("auto") shard count all in one thread?
As far as I can tell, the shard manager is always either multi-process or multi-threaded. But I can't find any other way to run multiple shards, so I'm not sure how to do that in a single thread.
Context Commands Registering
I try in more than one way to record my commands, but they do not register
my code:
```js
const rest = new REST({ version: '10' }).setToken(token);
...
What happens at 2,500 guilds/shard if you don't automatically reshard
What happens if a shard exceeds its maximum number of guilds? Does that shard crash (due to discord disconnecting the gateway client and it not being allowed to reconnect any longer), or does the entire parent process exit as well (allowing an automatic restart to properly reshard as a fallback without duplicate/orphan processes running)
Guilds request AI
```js
app.get('/users/guilds', async (req, res) => {
const token = req.cookies.token;
console.log('Token received:', token);
...
How do I convert this a permission int into an PermissionString[]
Hello, I am watching the
GuildAuditLogEntryCreate
event and when a permission is updated i am getting this in the entry
changes: [ { key: 'permissions', old: 8797166764176, new: 8797166764160 } ],
I want to see which permissions has been changes so I hhave seen on the documentation that I can use PermissionsBitsField, I wrote this...Does the REST handler retry failed requests?
See title. I'm mainly referring to errors with a 5xx code, but I do want to know if the REST handler retries any requests of any type.
I want to handle those errors and would like to know if I'm just repeating error handling logic that discord.js already performs.
And if there are community resources or examples on how best to implement this please point me to them, I wasn't able to find anything when I looked....
Fetch all reactions from a message but without cache
Hey there, is that a way to fetch all reactions attached to a message without using the cache function?
This is my current code
```...
Do not know how to serialize a BigInt at JSON.stringify
Hey quick question. Ive been trying many different things but i am still getting this error:
im trying to convert PermissionsResolvable to PermissionsBitField
wondering if anyone has ever gotten this issue and knows how to fix it...
TypeError: Do not know how to serialize a BigInt at JSON.stringify (<anonymous>)
TypeError: Do not know how to serialize a BigInt at JSON.stringify (<anonymous>)
Make a select menu builder for certain roles?
I am kinda new to coding and confused on how I can make a select menu for certain roles. I can get the menu sent but don't know how to make a certain interaction add a certain role.
Bot that listens to code words
How do I make a bot that listens to a "secret code word" and performs an action when someone says it? This cannot be a slash command because slash commands show up when you type in "/".