djs-questions

9202 threads · Page 71 of 185

DiscordAPIError[50006]: Cannot send an empty message 9 messages
prisma trout I'm trying to make a command that uses an API. When I execute this command, it says the application can't send empty mes...
1150878580193116250
I am trying to use this bot, but I get the following error. 10 messages
pure shale I am trying to use this bot: https://github.com/MitchTalmadge/discord-echobot However when I try to run the bot I get t...
1150878580193116250
hey i am trying to make a ticket system with a slash command for my bot and i have an error 3 messages
winter walrus my code is missing a required "data" or "execute" property.
1150878580193116250
Hey i got this error 7 messages
winter walrus ValidationError: Expected a string primitive
1150878580193116250
ModMail is Not Working 12 messages
candid cradle Please Help modmail is not working
discord voice joins channel but doesn't sound 1 messages
forest grail Hello, I've been trying to create a bot on Discord. I want it so that when you send a rose 🌹 or a thunderbolt ⚡, the bo...
1150878890307358882
problem with BASE_TYPE_REQUIRED 8 messages
digital sinew Hello, here's my code : ```const { ApplicationCommandOptionType, ChatInputCommandInteraction, EmbedBuilder, ButtonBuilde...
Trying to make a bot 1 messages
autumn kraken I don't want to be taught, but could someone tell me what things I would need to make that happen? I never really wanted...
ButtonBuilder > TypeError: Cannot read properties of undefined (reading 'customId') 28 messages
plush lichen ## Part of `Index.js` ```js const { componentTogglerIds } = require('./commands/main/start-contract'); const buttonToggl...
1150878580193116250
how do i change from guild command registration to global command registration 2 messages
winter walrus my bot slash commands work in only one server and i want to change it to global i ve read the discord.js guide but i am ...
1150878580193116250
Error with choices in slash commands 6 messages
heady pilot Error: ```js ExpectedConstraintError: Invalid string format at Object.run (C:\Users\4339u\Desktop\UNORP2.2\node_modu...
1150878580193116250
Help registering Slash commands 3 messages
heady pilot I need some help with Slash commands ```js DiscordAPIError[0]: 405: Method Not Allowed at handleErrors (C:\Users\43...
1150878580193116250
How do i send messages in a Forum Channel 17 messages
heady sand assuming i have the channel stored in the `channel` variable, how would i send a message to it? Any clue? I've scoured h...
TypeError: Cannot read properties of null (reading 'value') - discord.js@14.7.1 58 messages
nova glacier I get the error spammed when I open the menu to select country. ```js module.exports = { name: 'list', descript...
Guys pls someone help me with this i am writing i wanna put slash commands to my bot but i cant 30 messages
winter walrus TypeError: Cannot read properties of undefined (reading 'cache') its discord.js v14 const guild = client.guild.cache...
1150878580193116250
When i try to /authkey or /wl i have this problem 90 messages
mint jungle When i try to /authkey or /wl i have this problem
Select dropdown 19 messages
solar veldt How would I go into adding a Select dropdown list into a slashcommand? With a list that is more than 25 long. I'm using ...
Audit log 2 messages
jaunty crescent is there a way to hide logs of the bot from audit log? for example "move member" or "channel create"
.setThumbnail link not working. 9 messages
sick pendant I would like to use a local file as embed thumbnail, that is served by node-js express that is running alongside my bot....
Unknown interaction 3 messages
timid lion anyone know how can i fix this error ? ```cmd DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Users...
1150878580193116250
Value undefined after SQL database initiation 9 messages
hardy briar ```js const joinMessage = await interaction.channel.send({ embeds: [joinEmbed], components: [row] }); // Defined value ...
Uncaught DiscordjsError RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS. 5 messages
mint jungle Uncaught DiscordjsError RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS. at resolve (c:\Users\...
Channel user permissions 5 messages
trail schooner Does anyone knows what the problem is that I am currently having within a slash command file? I would like to add a pers...
1150878580193116250
How to add an interaction for the buttons added here 12 messages
ocean falcon This command file is in a separate folder ./commands/utility as taught in guide, how do I add an interaction to make but...
ExpectedValidatorError on showModal() 44 messages
misty geyser When attempting to respond to an interaction via interaction.showModal(), the following error appears: ```console Combin...
1150878580193116250
channel permissions 10 messages
sleek crypt how to set a permissions overwrite for every member ina specific channel
How do I get mentioned channels in a message? 2 messages
compact ocean Like this: "<#826569464610029568>" How do I extract that? Version: v14.14.1 Node version: v20.10.0
Unable to DM User despite open DMs 12 messages
heady sand code: ```ts try { let userData = client.users.cache.get(user.id); ...
Invalid Type? 6 messages
heady sand Hi, Im trying to map users from guild into a dropdown heres my code so far, ```ts const members = await interaction.gui...
Help with !play song command. 4 messages
prisma trout I am a begginer at bot development and I want my bot to play song in the voice channel I am rn without using ytdl-core. ...
1150878580193116250 998292157150535700
MODULE_NOT_FOUND 10 messages
turbid hull Hello! I encountered a problem when trying to run my Discord.js bot. I don't know why I keep getting this error even th...
getting owner from id 4 messages
sleek crypt why is message.guild.members.cache.get('owner_id') returning undefined?
awaitMessageComponent not working on server but works locally... 19 messages
sacred dock So, I have the following code that has been running for months.... const collectorFilter = i => { ...
1150878580193116250
Not Work 42 messages
worn sorrel ```js module.exports = { name: 'add_client', description: 'Give client role to the member', options: [ ...
Images not loading in embed 34 messages
latent hill So if you are trying to setImage() a image from a discord chat, it will just not load it, but if you are trying to load ...
interaction.user.send() not working? 15 messages
heady sand The embed with Success happens and whole thing goes to plan but i.user doesnt get logged??? nor do i get dmed ```ts ...
Joining and leaving VCs fires off messageCreate event 38 messages
fast creek I'm working on a mod for discord.js with some quality of life changes and one of the things in it are custom event handl...
1150878580193116250 998292157150535700
button 36 messages
faint creek i am trying to put a button and when i am adding style it tells me buttonstyle is not defined ( i am doing whats written...
Options missing from slash command. 29 messages
finite lark ```js const interaction = { interaction: { type: ApplicationCommandType.ChatInput, description: "some descript...
1150878580193116250
voicechannel audio 3 messages
sleek crypt how to retrieve audio from a discord voice channel
not switching on 15 messages
faint creek i am trying to upgrade my bot to v14 but it gives me this error everytime i try to switch it on i have updated the way i...
Users & Role select menu not clearing when it should 55 messages
wraith aurora I am not sure if this is a bug in discord.js discord it self or me missing something but this seems broken. I seem to b...
The type of a <Message>.awaitMessageComponent() filter 6 messages
autumn crane I am trying to use <Message>.awaitMessageComponent() in typescript, but I just can't figure out what the type of the fil...
Problem with discord.js on pterodactyl 7 messages
smoky coral Hello, Does anyone know how to fix this problem?
1150878580193116250 998292157150535700 986538542350086175
Recieved 1 instruction to send a webhook but it send twice with different contents. 87 messages
sullen sky We have a system in place that sends instructions to the bot with webhook id and token. Upon recieving the instructions ...
1150878580193116250
how to remove embed color? 7 messages
outer ferry Hello to all, how to delete the color of an embed? Is there a specific color? Thank you. An example is:
I've been at this for hours. Invalid Channels? 8 messages
heady sand This is how im defining channels ```ts export let channels: { paidJob: discord.Channel | null | undefined; commissionJ...
How to edit the inital reply after ModalSubmitInteraction? 8 messages
lone walrus I am using Node v20.11.0 and discord.js v14.14.1. Initial reply: ```typescript const button = new ButtonBuilder() ...
1150878580193116250
problem with ChannelType.GuildText 8 messages
digital sinew when i type this command the console respond me: TypeError: ChannelType.GuildText is not a function ```const { Clien...
API for my discord bot 2 messages
cunning epoch Is there any easy way to implement an API on my d.js bot so whenever someone visits my website I can make a call from th...