djs-questions

13317 threads · Page 172 of 267

pinging deleted role when using ${} but not when using static string 10 messages
slashcmd.run issue 3 messages
hybrid urchin This is my music bot. I tried, to add a other command, and all i get back is this. I am too stupid to know what the issu...
Sending a message with more than 100 characters 4 messages
mighty hatch When I try to publish my slash command, ```javascript interaction.reply(new MessagePayload(interaction.channel).makeCon...
@discordjs package
non slash commands 26 messages
mighty hatch If, for whatever reason, I want to write a command that uses the old fashioned `!<commandname> [arbitrary number of argu...
How to ban user in v14 8 messages
lean swallow Hi, I'm very new to discord js I'm trying to create a !ban user command however I can't find out how to do this anywhere...
bot won't make commands and gives weird errors but still comes online 10 messages
nocturne plank This is the error i get: ` [Error_Handling] :: Unhandled Rejection/Catch` `DiscordAPIError: Invalid Form Body` `name: C...
slash command error (error event) 5 messages
lucid apex Hey there! I have asked something about the slash command registration some time ago, now I have a new error. When I r...
Variable Length StringSelectMenu 9 messages
slim peak Hello! I Was wondering if its possible to make a select menu, and then add options to it with another function similarly...
hide status 6 messages
runic kiln Is there a way to hide the status of the bot like this
bot question 10 messages
servers list 12 messages
timber granite How do I get a list with the name and members of all the servers the bot is on?
discordJS command do not register 9 messages
lucid apex Hello there! I have just started a new discordJS v/14.7.1 project. However, I have followed the discordjs.guide exactly...
Unknown interaction error 5 messages
west iron My code : https://sourceb.in/Cg9oUtHEHF Error i am getting:https://sourceb.in/gCjavYjFua
Wrong code 23 messages
crimson fern Everybody can help me found the mistake in this code: const commado - require('discord.js-commando'); const commando - ...
Is it possible to create presets for an Integration? 8 messages
scarlet solar In Server Settings -> Integration, you’re able to set permissions for slash commands. You can hide/show them based on ch...
slashcm removal 22 messages
terse elk How can I remove a slash command ?
I am trying to send a local image 9 messages
wicked linden What is wrong? `const attachment = new AttachmentBuilder("D:\Bot\Images\Picture.gif", {name: "Picture.gif"})` `.setIma...
Cannot read properties of undefined (reading 'send') 11 messages
young blaze I'm awaiting the ready event from my bot to send a message. Sadly that doesn't work. Any ideas? ``` (async () =>...
How to specify the path to the image from a folder on the computer in .setImage? 17 messages
wicked linden .setImage('D:\Pictures\Picture.gif') - not working
Sharing rate limits across clients 6 messages
static marsh Hello, is there any way to share rate limit data across clients with this library? I have separate shards of a bot hoste...
Activity presence to amount of guilds 2 messages
limpid robin How can I put the activity presence to the amount of guilds my bot is in? I tried client.guilds.cache.size but its not w...
Strict mode 2 messages
pearl lynx Is it recommended to use strict mode in discord.js?
presenceUpdate 2 messages
stable tide ```js //BIO client.on('presenceUpdate', async (oldPresence, newPresence) => { const role = newPresence.guild.roles.c...
Refreshing Slash Commands doesn't deletes commands in command list 10 messages
mortal pine I just deleted the command file in the file system and followed this: https://discordjs.guide/creating-your-bot/command-...
Multiple Select Role 43 messages
uncut haven Hey, does anyone know how to made a multiple select role because i don't know how i can do it (made a something automati...
Is it possible to use ES6 instead of ES5 for imports? 9 messages
ruby hull Trying to run a SvelteKit server along side my bot but SvelteKit uses ES6, so I was wondering if it is possible to make ...
Code not working properly in bigger servers 14 messages
merry fog So I ran this in a server with only 2 members and it worked perfectly fine. When I ran it in a server with a bit more me...
. 5 messages
@discordjs package
Get channel by id 9 messages
warped aspen Hi, im trying to get a channel by it's id but i get undefined
messageDelete event not working 43 messages
mild finch I created the event messageDelete on my bot, but when I delete a message the event is not raised
Bot stops receiving Discord gateway events. 37 messages
forest wren This bot instance has been running for over a year with no issue. Twice recently it just stopped receiving events. It's ...
Get channel ID by the name 3 messages
slate whale How can I get the channel ID by the name? On const ticketChannelName I create a name for the channel and now I want to g...
Get the voice channel the bot is connected to 4 messages
warped aspen Hello, how can I get the id of the voice channel the bot is connected to?
Get the replied message of a commandInteraction 3 messages
karmic chasm If I use a slash command while replying to a message, how do I get that message from the interaction ?
although there is no problem, it does not work 3 messages
How to make a bot send a message to a specific channel 12 messages
orchid inlet Hello, the code for sending a message to a specific channel from the guide doesn't work alone ```js import {Client, Rou...
Sending message to a specific channel. 2 messages
lime wyvern An idea is that user sends a command into a channel, I save channel's id so that I can later send messages into that cha...
Seems that message#awaitMessageComponent in my code can't received any interaction respond? 10 messages
rough gyro I just update my discord.js to 14.7.1, but after update, I find out that message#awaitMessageComponents in my code can't...
Ignore dm 14 messages
half lagoon how to ignore private messages in event interactionCreate?
2+ Clients = API spam? 5 messages
tawdry solstice If I have 2 or more clients on a single IP, will this be considered API spam even though each client has a different tok...
another problem it was running just fine then i added a command and it now is not working? 6 messages
rocky socket all i did was add ping and try to make it say "pong" and all i got was ```.filter((file) => file.endswith(".js")); ...
DiscordAPIError[10062] help 2 messages
lament anvil DiscordAPIError[10062]: Unknown interaction at SequentialHandler.runRequest (C:\Users\law_b\Desktop\PokemonGame-Disc...
my bot wont go online this is my first bot and im new 18 messages
Role mention with embed 15 messages
wintry temple Do role mentions not work alongside embed messages? Not inside in the embed, outside: https://ilearner.dev/imgs/5rgfs.pn...
how to set this line 142 messages
Getting the details of a message being replied to 11 messages
tranquil shadow If a user sends a message replying to a different message, how can I use Discord.JS to get the data (like content, usern...
deleting/hiding message within channel for specific user 7 messages
ashen sorrel Hey, just asking if there is a way for bot to hide/delete a message within a single channel from a specific user within ...
typescript issue with discordjs REST api 12 messages
lime chasm Heya, trying to do the following thing in typescript ```ts const rest = new REST({ version: '10' }).setToken( pr...
@discordjs package
Get bot server count for website 4 messages
deep adder Hello, i have a question, how I could recover the number of servers my bot was but without passed discord.js, it is then...
Fetch message 2 messages