djs-questions

9202 threads · Page 92 of 185

Error on client.commandArray.push(command.data.toJSON()); 4 messages
dawn quiver error
ValidationError: Expected a string primitive 2 messages
dawn quiver Version = 1.4.0
I can send a png from a javascript buffer as a message attachment, but I cannot embed it. 14 messages
last oasis My code looks like this: ```javascript makeMemeAsync('geordieDrake', before, after).then(buffer => { initialQuery.c...
TypeError: component.toJSON is not a function 26 messages
west iron Code: https://sourceb.in/CshyWb9hcA Error: ```ts TypeError: component.toJSON is not a function at C:\Users\luizs\Val...
Very slow working code 31 messages
drowsy plume I've got a problem: ```js const coordinate_types = require('../constants.json').coordinate_types; module.exports = { ...
Embed Thumbnail not showing 20 messages
tawdry sparrow ```ts const reportEmbed = new EmbedBuilder() .setTitle(title) .setDescription(descriptio...
Get image as arg from message 7 messages
sand berry Is it possible to get the sended image from a command as an argument and send it with the bot? Like: !image (I send an i...
Buttons in DMs not triggering interactionCreate 7 messages
wooden dawn can bots not listen to buttons sent in dms? other interactions on server is working fine and i've doublechecked basicall...
1150878580193116250
TypeError: Cannot read properties of undefined (reading 'has') 23 messages
balmy magnet I'm trying to create a cooldown system for my bot following the official discordjs.guide page. When I run a command, I g...
1150878580193116250
Return type of "cdn.discordapp.com/avatars/id/hash" 2 messages
dense summit Does the module `discord-api-types` provide the type of return for `cdn.discordapp.com/avatars` route?
1150878580193116250 998292157150535700
Processing message before notification? 5 messages
worthy lichen Is there a way to ensure a message is processed before a notification is sent to the channel participants? We are wanti...
1150878580193116250 998292157150535700
UserSelectMenuBuilder the interaction failed 9 messages
vital scarab After some of the latest updates to discord js, UserSelectMenuBuilder stopped working, despite the fact that before it f...
How to organise commands 7 messages
regal crater I want to organise commands in a folder instead of having all of them in my index.js file. Every single tutorial I watch...
DiscordJS behind a proxy 23 messages
weak pulsar I need to use a proxy in order to connect to the internet, however I can't figure out how to get djs to use it. The pack...
Image URL doesn't show up in embed 4 messages
graceful lodge I have an image url but it doesn't show up in an embed although its a direct link to the image `.png`, it open up in the...
How to fix connectrion error? 2 messages
amber ruin My wifi is ok, but i start getting this error. Brandmauer is disabled. I'm using Archer C6 router.
1150878580193116250
Add Team to private thread 4 messages
onyx field I make a ticket system with private threads. How can I add my team? I can only add individuals so far
channelUpdate Permissions 4 messages
jovial helm Hey there, how can I retreive the permission changes on the event? Upon fetching the audit logs and looking for the chan...
subcommands 3 messages
north silo What is the difference between subcommands and subcommandsgroup, how can i make a subcommands option for conditional?
modal 4 messages
vague lodge what is the maximum length for placeholders and labels
Equations 1 messages
kind rampart I’m doing a physics simulator for fun , however i need something to solve equations like 5=4+4X tried to use mathJs , bu...
1150878580193116250
TypeScript GuildText Channel Type help 4 messages
surreal remnant I am attempting to fetch a channel to send a welcome message in my `guildMemberAdd` event. However, I am getting this ty...
DISCORD BUTTON 5 messages
toxic field can you help me with my code its always say ``No command matching undefined was found.`` ```js try { //await app...
Allow ManagePermission when creating voice channel 2 messages
granite grove Hi, im creating a VC and want to give who join a channel 2 permission ManageChannels and ManagePermissions But when I c...
1150878580193116250
issue with regex in autoModerationRules 9 messages
manic hull ```js await message.guild.autoModerationRules.create({ name: 'This message has been deleted because it...
Error while trying to make command register 12 messages
meager nimbus Hello, I'm trying to make register-command.js file to store my slash commands in but it returns a error. I'll say right ...
What is it about "features"=>["COMMUNITY", "NEWS"]? 9 messages
summer pagoda One of the servers my bot is connected to has those "features". For others the array is empty. What are those features ...
Wierd wierd problem 11 messages
wild sand const emailSend = crypto.randomBytes(12).toString('hex'); const member = await msg.guild.members.fetch(msg.content); if ...
1150878580193116250
Slash Command Builder Default Option Values 3 messages
winter basin Good morning all! `discord.js@14.13.0` `node v18.12.0` I'm working w/ `SlashCommandBuilder` and am trying to figure ou...
1150878580193116250
getaddrinfo ENOTFOUND discord.com 4 messages
mental goblet What does this error mean?
Change voice channel name 2 messages
wraith ember How can i go about changing a discord voice channel name with discordjs?
Events.GuildMembersChunk 3 messages
clever grail wtf is this?
1150878580193116250
"Interaction has already been acknowledged." discord.js bot 7 messages
wet heron So my bot has been giving me this error where it either says "Interaction has already been acknowledged" or "Unknown int...
1150878580193116250
Fetching thread from Forum Channel Message 6 messages
manic vault For some reason I'm having trouble fetching the thread from a forum channel's message. I'm listening for reactions, but ...
Get multiple select menu values on submit 11 messages
gaunt juniper Searched around but couldn't find a solution to this. I'm essentiall building a time/date form with a submit button. (S...
Searching for a directory that is non-existent 3 messages
wary thistle Hello, I keep trying to figure this out but the code is not working and keeps trying to look for a directory thats not m...
1150878580193116250
Mention without Pinging 2 messages
tall brook Hey, Iw it possible to send a message via discordjs wehre I am mentioning a member but without them to recieve a ping?
1150878580193116250 998292157150535700
Circular dependency 5 messages
mellow harness Hi, I'm new to creating bots, and this is my first bot. The idea is to make an rpg bot, integrated with my server. When ...
invite.delete() 2 messages
shell fog ```js for (const invite of invites.values()) { if (invite.uses === undefined) { continue; // ski...
create a loop to post the /cmd 6 messages
stoic terrace Hi ! My question is about rate / action limits. I have a private bot, and when I want to add some /cmd I use ` applicati...
1150878580193116250 998292157150535700
DiscordAPIError[10070]: Unknown Guild Scheduled Event 13 messages
cursive lark I've been working on a bot that handles Guild Scheduled Events. While implementing the GuildScheduledEventDelete event, ...
Build Error when compiling latest version of discord.js 8 messages
finite horizon Hi, I've tried googling for this but I've found nothing. I've tried to compile discord.js to run on a AWS lambda (which ...
Cannot read properties of undefined (reading 'FLAGS') 4 messages
wary thistle I get the error above, here is the error: ```Uncaught TypeError TypeError: Cannot read properties of undefined (reading ...
1150878580193116250
How to fetch an command interaction and extract message 11 messages
oblique hound I'm trying to fetch a interaction message, the resulting Message object's `content` key has bot's reply in it. How can I...
How do I install djs v13? 2 messages
rose gyro whats the command for it? npm install...??
How do I start making a code? 21 messages
hot stone Howdy! I'm a new developer to discord.js! I am wondering, how do I start making a code for my discord bot?
Property `getString` does not exist on valid object? 13 messages
wind terrace d.js version: `v14.13.0` node version: `v18.16.0` Just quickly porting my code to windows to make sure everything is wo...
Shards problems 7 messages
vapid rover Hello, since 2 p.m. yesterday, the bot that I have which was working perfectly well is giving me shard errors. Knowing t...
Type error: this.data.content is not a function 1 messages
vocal zealot Type error: this.data.content is not a function
Intents error? 11 messages
heady marsh so a friend of mine sent me his discord.js bot and well when I configured the .env stuff and pressed run the repl broke ...