djs-questions

13317 threads · Page 64 of 267

Is there a way to check if the bot has the applications.commands scope in a given guild? 5 messages
proper citrus As title says, is there any way to check this? Either through DiscordJS itself, or I'd settle for settings on Discord or...
npm i discord.js error 3 messages
red echo https://media.discordapp.net/attachments/1173046934299222026/1216445931424317493/image.png?ex=66006a8e&is=65edf58e&hm=a2...
@discordjs package
Fetching message in a thread 20 messages
last lantern ill explain after i post
Collectro recieved no interaction before ending with reason: time 31 messages
grand ledge I have a signup modal that has a collector on it. But I don't know how to prevent it from crashing if the time expires. ...
node
remove and add roles stop after time of running ? 15 messages
hazy zephyr hi guy's i want to ask about this problem My bot works on my server to organize the server in general, remove roles, g...
node
Hello 7 messages
woven socket the image is my question and thank you for making discord.js its very convenient
node
when is shards: 'auto' recommended? 6 messages
mortal kestrel from https://discordjs.guide/sharding: > Apart from ShardingManager, discord.js also supports a sharding mode known as I...
node
Error in my ban command 3 messages
night pagoda ```js const { EmbedBuilder } = require('discord.js'); module.exports = { name: "ban", description: "Permet de b...
fetching scheduled events 12 messages
frozen dirge Im having trouble figuring out how to fetch the scheduled events for a guild using. djs ver: 14.14.1 node ver 20.11.0 ...
node
Channel not being created 3 messages
patent epoch Bot is not rate limited. ```ts await Promise.all( data.channels .filter( (channel) => "isThread" in channel ...
How can i tag the message sender 6 messages
placid bone ``` if(interaction.commandName === 'vouch'){ const embed = new EmbedBuilder() .setTitle("Vouch!") .setDescr...
Im trying to make a discord bot in replit, Please help 12 messages
normal ginkgo plz help
How can i make an add role command 8 messages
placid bone im using slash commands so how can i add a command that adds a specific role to a defined user? ``` client.on('interacti...
Typescript 4 messages
drowsy hawk How do I set it up for typescript?
node
Member Server Kick reason is not defined 5 messages
static light Hey, I have a /server kick command but the reason somehow doesn't come through in Discord. Here's my code: In the logs,...
Flashcard quiz for students using JSON alphabet file - pick three random characters shuffle 6 messages
getInteger not working for one option but is working for another? 9 messages
last jetty Basically, I have a dice roller bot and in a new command I'm working on, I can get one of my integers options but not th...
401 not authorized 16 messages
balmy oasis everytime i try to start my bot i get this error.
Make a Discord bot reply when a user sends an image in chat (continued) 61 messages
proud sundial I have a discord bot up and running and working on slash commands. But I'm having trouble getting it to reply when someo...
Commands 21 messages
dense kernel my commands for some reason will not delete from my server ```ts console output Commands Count: 0 Commands Fetched: 0 `...
message update issue 13 messages
hardy violet i have a bot which listen to message update event and do calculation based on the message and save to database then send...
Creating emojis promise doesn't resolve 6 messages
patent epoch ```ts progress.push("Creating emojis..."); msg?.edit(progress.join("\n")); try { await Promise.all( data.emojis.ma...
what should I do if I want to print the string that the user entered in the discord chat ... 10 messages
rustic jewel client.on('interactionCreate', (interaction) => { interaction.reply(????) });
Missing permission on creating channel 7 messages
thick talon Bot is able to create category but fails when creating channel. I have give manage Channel permission to bot. here is ap...
node
Property 'id' does not exist on type 'APIGuild'. 13 messages
junior hare via Discord-Api-Types package, latest, I am receiving the type error: ``Type error: Property 'id' does not exist on type...
@discordjs package
Set activity with user ID 4 messages
ornate solstice Hello everybody. I'm coding something related to Discord presence. And I already created a full design for the project ...
The maximum limit for a bot to enter a server 13 messages
twilit oak Hello, I just returned to program bots, but I just want a special command in the limit so that the bot enters a server a...
node
Error validating bot token: InvalidArgumentError: invalid Authorization header 45 messages
zenith lava Hello sir i'm facing suddenly new djs error in v14 when i try to login into the bot and i'm sure 100% all intents enable...
reply to message with channel webhook 9 messages
raw raptor Is it possible to use Webhook.send() to reply to a message in the same channel? I followed the docs and it makes it look...
"Started refreshing 0 application (/) commands." 7 messages
eager rune Hello! I'm having trouble with a really stubborn issue in my code and I'm honestly pretty stumped. I have a minimal, but...
Modal submission help 58 messages
grand ledge I am trying to make a modal that asks for your minecraft username and then put it to the database. The modal opens suc...
node
can someon help me with a bot discord (discord.js node) 41 messages
vocal silo I created a discord bot in node, and for the ",ping" command it sends the same message 3 times... can it be solved? I ca...
I'm trying to make my Discord Bot Reply when a user sends an Image in Chat 9 messages
proud sundial I have a working discord bot that responds to people and I'm even getting it to tell me the weather and time of a specif...
Can you use variable in embedBuilder name and description? 9 messages
grand ledge I have a embedBuilder instance and It doesn't seem to work. const embed = new EmbedBuilder() .setTitle(name) ...
node
Bot stopped working 13 messages
stiff jacinth my bot suddenly stopped working, it says 'application did not respond' when i try to run any command without showing err...
node
How to get the user id, username, nick when mentioned by another user 18 messages
onyx raven I tried `m.mentions.members.first()` but to no avail it didn't work as expected due to the `mentions` property being `un...
@discordjs package
Shifts logs 13 messages
wet barn Hello, I've been thinking of adding a command to my bot that logs people's shifts. The concept is that when someone run...
node
DiscordAPIError[10008]: Unknown Message 60 messages
left folio } /root/bots/Synth/node_modules/@discordjs/rest/dist/index.js:640 throw new DiscordAPIError(data, "code" in data ?...
im still new to all this and cant install node.js to discord and need some help if possible 2 messages
sudden remnant im sorry for asking this but all videos are so confusing and dont show all the steps
node
member.setNickname or member.roles.add occasionally not working 9 messages
drowsy grotto Hi all, What reasons are there for a nickname potentially not being applied, or a role potentially not being applied? ...
node
I have an error in my bot 4 messages
river ore Hello, sorry for the inconvenience, but I have a problem with my bot, since it turns off due to an error, for which I do...
Button Question 9 messages
ebon sapphire How can i make a button never expire?
Commands not refreshing after being correctly deployed 7 messages
mint dagger Good evening. I'm developing a discord.js bot using typescript. I am having trouble using my deployed commands. To clari...
guild.guildScheduledEventUserAdd event failing to fire consistently 2 messages
inner kraken I am having an issue with the guildScheduledEventUserAdd event. It seems to trigger sometimes but when I create a new ev...
node
Where do I start from? 3 messages
rotund oxide Hi, Can y'all share some helpful resouces with me so that I can understand and learn about npmjs?? Thanks in advance.
node
Help me pls 11 messages
deft moon Code: Error: `[WARNING] The command at C:\Users\OE104655\Videos\Eendsmp bot\commands\utility\giveaway.js is missing a r...
Help me pls 4 messages
deft moon Idk whats wrong with this line of code: `const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBi...
is it possible to run command 1 from command 2 3 messages
deft moon so like command 1 is /embed title: description: And i want to run that command with pre-set values from /announcements
How do I add a role with discord.js 3 messages
desert fractal ```js const target = interaction.options.getUser('target'); const role = interaction.options.getRole('role'); ...
check if role is set to certain role ids 6 messages
desert fractal how do i check if the role is set to certain ids? ```js const role = interaction.options.getRole('role')...