discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

forum post reaction + join

hello i am trying to make it so my bot will automatically join new forum posts in the server. my code can be found below: ```js if (message.author.bot) return; console.log('message recieved') ...

does the bot log out after some time

when using
client.login(token);
client.login(token);
does the bot log out after some time? do i need to keep my computer on in order for the bot to stay online? i literally just started with this so sorry if this is a dumb question πŸ˜”...

slash command issue

I have command called /ping and its loaded correctly but my bot is not showing/can't it ```js const commandFolders = fs.readdirSync("./commands"); ...

"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?