discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

"Unkown command" when using context command

so heres my code i've no idea why the context command says unkown command

lil doubt

like i wanna make a slash command when i use that slash command while replying to some guy, the message i am replying to should get deleted

πŸ“ƒUnremoveable Role ProblemπŸ“ƒ

I need help becaue a role that was tied in with a integration was removed and now since the premium integration is removed now you cannot delete the role. the tier or premium discord integration forget to delete the role. so how do you fix this. I have contacted discord support and emailed them and it has been multiple days. This might be day 3 or 2. Can anyone fix this.?? (ignore tag)
No description

Are there any good options for selecting multiple users in a command's options ?

Im trying to make a command where you need to select multiple users and after that it creates a channel with those users being able to see it.

commands

how can I make commands that when I use /add [ID] the user gets added to a channel and when I do /remove [ID] the user gets removed from the channel

Reaction Collector doesn't work as intended

So the code for reaction collector doesn't work, i was following a tutorial and i rechecked every single line a few times still doesn't work as intended. ``const { SlashCommandBuilder } = require(discord.js`); module.exports = {...

Any ideas?

I don’t wanna hardcode the bitfield and im guessing that i did this the wrong way somehow anyone got any ideas about them mfs? ```js throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);...
No description

Can you use interaction.member.roles without privileged intents?

"privileged" = the intents that require verification and stuff

using channel search function.

Is there any way to use the channel search function as a bot? for example to search for messages from a specific user with certain content Example: in:channel-name has:image from:user...

How can I ban people with my bot who are outside of the server? (reopening)

I still cannot seem to find away to ban users who are outside of my server and require help Im currently using an embed which you can choose if you want to ban or kick a person, which then goes to the button script to do the rest command script:...

How can I ban people with my bot who are outside of the server?

I’ve managed to do a guild command but I cannot manage to make it so I can ban people outside of the guild, how do can I make it do that?

Trying to get custom set permissions for commands in a Guild.

I have defined (https://github.com/NanoAi/discord_bot_snail/blob/main/src/index.ts#L71) commands that should apply globally to any guild the bot joins, they aren't specifically assigned as commands just for the guild. Currently I'm trying to fetch the custom set permissions a user may have defined so that I can check them when a user doesn't use a Slash Command, but uses a typed "!command args" in via a message instead. How would I do this? ...
No description

Request error unknow message 10008 but my code isn't related at all to this

i'm send the vanity-url request but i get Γ  10008 unknow message errur what the heck?

Command dissapears

Hi there so I have this little issue with one of my new commands some useless background information. My bot is hosted on my linux server that I recently have moved it to from AWS to a cloud server everything was working perfect until I added a new command. So one day I added a new command to my command folder, I use ssh in VSCode to edit all my files, add new files etc. ...

fetchRecommendedShardCount

I want to know how this works, since shard_id = (guild_id >> 22) % num_shards, hinting that we can't anticipate guildsPerShard. There's multipleOf as well, how do these terms link together in a single expression?
No description

I have an error that I cannot solve.

So I have a warn.js file that has an error. The file is https://sourceb.in/6Hrc2IpLUt and the error is: TypeError: Cannot read properties of null (reading 'id') at Object.execute (D:\Happybottesttobeofficial\slashcommands\warn.js:26:89) at Client.<anonymous> (D:\Happybottesttobeofficial\index.js:52:19) at Client.emit (node:events:520:28) at InteractionCreateAction.handle (D:\Happybottesttobeofficial\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)...

App didnt respond

``` async function handlePtMake(interaction) { try { const attachment = interaction.options.getAttachment('file'); ...

Bot disconnects when it's dragged to different vc

I'm changing vc of my bot but it immediately disconnects after rejoining... how should i fix it ? I have enabled GatewayIntentBits.GuildVoiceStates Already
No description