djs-questions

9202 threads · Page 75 of 185

"Cannot send empty Message" but its an valid embed 12 messages
fringe girder ` if (!user) { return message.edit("❌ Unknown user!") } let embed = new Discord.MessageEm...
1150878580193116250
Bot Stops Randomly (Error) 21 messages
signal sky Does anyone know what the error below is from? It randomly stops my bot. ```/home/container/node_modules/discord.js/sr...
Creating slash commands 32 messages
scenic lark How do I create slash commands? Currently, I am just listening for messages and checking if the message is "/verify" but...
Default commands get added for no reason? 9 messages
daring ocean idk why it just adds a bunch of different default like commands, i have just 3 commands getting loaded.. is there like a...
998292157150535700
Editing multiple action rows 12 messages
latent basalt I am having issues when I try to edit multiple action rows (Buttons)
1150878580193116250
TypeError: Cannot read properties of undefined (reading 'channels') 1 messages
rich rain Hello, I have the following error: TypeError: Cannot read properties of undefined (reading 'channels') in the code ...
Syntax error 4 messages
languid tiger async execute(interaction) { ^^^^^ SyntaxError: Unexpected token 'async' at internalCompileFunction (node:interna...
DiscordAPIError[50035]: Invalid Form Body 25 messages
fallen slate After yesterdays scheduled restart, the following error appears after a button interaction reply. This code worked up un...
Issue with guild.roles.create() 138 messages
scenic lark I am trying to create a role with discord.js, using guild.roles.create(). The promise this function returns stays in the...
Interaction already deferred. 5 messages
hardy briar https://github.com/KiraKenjiro/bot The bot at the moment works almost *perfectly*. qj's been a saviour and helped me wi...
How to add support for private slash commands 12 messages
native sinew Not a big Discord user so lots of common stuff I don't know. But I've made a bot for use just in one channel with a coup...
Selecting the same Slash Command option multiple times 3 messages
gloomy heron Hello. Currently learning the basics of Discord.js, I was wondering if it supported selecting the same option multiple t...
Discord Error Code 10015 when using a collector to handle button events 32 messages
slow saddle Hello! I am working on a bot Im on the development team with and I dont know how to fix this issue. It is showing a "Unk...
How would I send an interaction user a message DM? 7 messages
tribal patrol Currently trying to send a user a DM, I've had a quick scope at the docs and Noticed `createDM`, Not sure on how I woul...
Discord TTS bot 37 messages
copper patio Hi there I am trying to create a discord bot where it would join a vc that I am in and when I use !t <Text> it wold join...
How to retrieve original command interaction options from select menu interaction? 3 messages
hollow night Hi people, I am trying to figure out if it's possible to retrieve CommandInteraction options from a StringSelectMenuInte...
When I interact, whether creating ephemeral messages or editing (editReply) it doesn't work 32 messages
woeful crescent When I interact with a dropdown or button, whether to edit or create a new ephemera message, it does nothing, and after ...
How do i set a custom status, not a "Playing" one. 7 messages
hazy widget I noticed that bots can now have a custom status which isn't the good old playing one, how do i do it in djs?
Format Embed Description 6 messages
queen sinew I'm having trouble formatting an embed leaderboard with the embed builder. I have the following for my embed descriptio...
Host a Bot on Raspberry Pi 2 messages
desert geyser Hey I need help to host my bot on a raspberry pi, can someone help me ? (my bot run on last versions)
the regex not working well 5 messages
proven drum Hey, so I was creating this message listener that will listen for an embed from a specific bot named dank memer, and tha...
How would I go around making a message embedded while also having buttons? 13 messages
noble heron So, I have the code for a message with 5 buttons and it works. I just would like to know how I could embed it to make it...
action row without slash command interaction 6 messages
open dagger is it possible to send an action row as a component of a normal message? i'm building a normal commands bot and i wanted...
Wanted to register a command and got this error: 18 messages
languid tiger Wanted to register a command and got this error: Started refreshing application (/) commands. DiscordAPIError[50035]: I...
name fetching errors 19 messages
odd breach ```js client.on("guildUpdate", async (oldGuild, newGuild) => { const guildd = client.guilds.cache.find(guild => guild.na...
1150878580193116250 998292157150535700
Check timeouts that have been issued 10 messages
digital nova Is there a way to get a list of timeouts for users on a guild similar to Guild.bans? My specific use case: I need to ch...
I send messages every 10 seconds 7 messages
quaint loom My discord bot sends a rich embedded image to specific server channels every 10 seconds. My bot is pretty large and a lo...
How do I program a Discord bot that sends messages? (JavaScript, NodeJS) 18 messages
toxic vale The Discord bot is not working. I have tried various methods (as you can see from the main file), but nothing works. I n...
1150878580193116250
command name is invalid 4 messages
raw badger hi guys i get this error its my first time making slash command bot and i just cloned that code from a github repo ``` ...
1150878580193116250
Interaction reply or edit reply depending on whether anything was sent? 4 messages
ember hearth Is there anything in discord.js that would let me call one function that would either reply to an interaction (if the bo...
Code is working but command isn't 33 messages
languid tiger So the code works, and the bot is online, but the command just doesn't appear to exist
sendSlash Issue [discord.js-selfbot-v13] 2 messages
glass galleon Code: ```js const { Client } = require('discord.js-selfbot-v13'); const client = new Client({ checkUpdate: false, })...
i get this error but i don't have any problem wih my code 16 messages
calm bay i get this error but i don't have any problem wih my code
1150878580193116250
Token problem 61 messages
languid tiger Everytime I start the bot it tells me that my token is invalid but it's not
What's after JavaScript 13 messages
frigid forge I've learnt JavaScript and I want to learn discord.js and make discord bots should I learn discord.js or should I learn ...
1150878580193116250
private interaction message 12 messages
echo hollow I want to make an interaction message private
message.channel.totalMesssgeSent returning undefined 8 messages
oak vigil Message and message.channel are the value that they are supposed to be. I have the MessageContent, Guilds and MessageCre...
Some typescript error when updating components 3 messages
mellow talon Hello there 👋🏻 I created a bot that handles a component interaction - a button click. OnClick I use ActionRowBuilde...
1150878580193116250
Find an active audio resource on current guild? 10 messages
tough fog Hello, how do I find an active audio resource on current guild? If there can only be one audio resource on the guild, t...
I really would appreciate someone showing me how to make a discord bot, because I am really stuck an 125 messages
languid tiger I really would appreciate someone showing me how to make a discord bot, because I am really stuck and I tried like so ma...
Get user by ID via DM Slash command 11 messages
olive phoenix I'm trying to get a User obj for a specifc user by their ID, but from a Slash command thats run via a DM ... I know wh...
Select menus not being able to be handled 5 messages
eternal topaz Whenever I try to run my bot it just says "Cannot read properties of undefined (reading 'set')". handleComponents.js: `...
Can u change the webhook "image" and "name"? 8 messages
indigo osprey Can u change the webhook "image" and "name"?
I keep getting Unknown Interaction errors in my console. 77 messages
quaint loom ||I accidentally closed the last post.|| I have lots of people using my bot each day and there seems to always be Unkno...
I keep getting Unknown Interaction errors in my console 1 messages
quaint loom I have lots of people using my bot each day and there seems to always be Unknown Interaction errors when people use comm...
Random writing prompt generator 2 messages
solemn idol Hi, Is it possible to make a bot that generates random writing prompts? Like it makes one itself rather than pull one f...
How to fix? 2 messages
high igloo I already reset my token
How can i set in embed.setAuthor my name "BrainDeadBons" for example. I always get "braindeadbons". 5 messages
indigo osprey How can i set in embed.setAuthor my name "BrainDeadBons" for example. I always get "braindeadbons".
Private Threads 5 messages
soft wadi Hello I'm currently trying to create a private thread that gets create from a message the bot sent .startThread, it isn'...
Is it possible to make a bot execute a curl command? 9 messages
lime thorn Am i able to make a bot reply to a command and execute a curl command (bash) at the same time?