djs-questions

13317 threads · Page 157 of 267

DMs 4 messages
grand robin Hello how i can read my bot Dms and send it to specific channel on my server ? pls send me link or any video about this ...
How to incorporate subfolders into a command handler? 3 messages
dreamy thunder I'd like to organize my command files within the commands folder because they're getting messy. I want to add subfolders...
channelID code 16 messages
The code doesn't work which worked 1 year ago. 4 messages
dev release
is is possible to get the memeber list names 3 messages
What is color format when using "embed.color"? 28 messages
cold sand Basically title, it seems it isn't hex or rgb, what is it then?
Unhandled promise rejection: Error: getaddrinfo ENOTFOUND discord.com 2 messages
west iron Code: https://sourceb.in/TtFvp6fwaF Error: https://sourceb.in/TvO9akpsrL
Bot dies when message is deleted 10 messages
dusk fern If my bots Embed is deleted after sending with a listener on, It kills the bot, Is there a way to avoid this happening? ...
How can I mess with RoleSelectMenuBuilder? 4 messages
versed plover I was trying to find forums and videos teaching how to work with this type of menu builder, but I couldn't find it. I wo...
Custom typing for Interaction in TypeScript 5 messages
spark goblet Hello, I'm currently developing a Discord Bot with typescript. I'm right now using an event listener to see when an Inte...
Permissions is null 22 messages
nocturne tulip I tried using the permissions setting given in the djs guide website but whenever I try it shows permissions as null. Do...
emojis not completely working in .setTitle in embeds 16 messages
neon harness attached image, am trying to use emojis in the title of an embed, which works for one of the emojis but not the other. i...
Is there a reason explained not to pin `discord-api-types` version on discord.js? 13 messages
lethal heron There are some cases where conflicting types between `discord.js` and `discord-api-types` caused TypeScript type error (...
Interaction has already been acknowledged error. 7 messages
sudden creek Hello, this is my code that creates a simple selection box. This selection box is created when a command is ran. The fi...
Coding with Discord.js in Webstorm 9 messages
woven hinge Hello all, I'm having issues with initializing my bot in Webstorm using discord.js v14.7.1. The problem is with import...
Using slash-command of other bot by my bot... 3 messages
Discord API Error: TypeError [ModalSubmitInteractionFieldNotFound]: Required field with custom id "u 2 messages
west iron https://srcshare.io/640774006649a477ba7aa962 error and code there
Button Interactions are "Touchy" 5 messages
dusk fern First off this isn't "Typescript as the URL states... Everything works, until after x amount of users interact with the...
how can i get user avatar url by id using discord api 19 messages
trail shadow how can i get user avatar url by id using discord api
Duplicate forum threads being created 14 messages
hearty stream Running : `Node v18.12.0` - `[email protected]` I've got an application which dynamically creates forum thread channels...
Addchoices Error when trying to start the discord bot 6 messages
azure comet having the following slashcommandhandler discordjs version: ``discord.js": "^14.7.1"`` ``` module.exports = { data...
how can i get mutual guild between user and bot? 4 messages
chrome bobcat my bot is in around 50k server i am creating an dashboard so how can i get mututal server of user with bot
can you login with different tokens on 1 bot instance? 3 messages
charred sage Let say I have my bot code running on my server, If I want my users to let them personalize their bot by giving us their...
Delete last message in channel doesnt work 4 messages
outer vault Hello, so I am trying to delete the last message in a channel and then send a message. ```javascript const channe...
Is there any disadvantage when registering global commands on bot startup? 4 messages
fathom onyx I'm trying to create a bot that is simple to setup and run yourself, which would also require it to register its own com...
Adding dynamic translation to a discord bot 14 messages
I need help on music command 4 messages
devout nymph Please help me to fix this…
types schema 8 messages
honest yacht Does discord-api-types provide some kind of machine readable schema? Preferably json but anything works. If not, is ther...
@discordjs package
Imported function is not being recognized 49 messages
tired scroll No matter what I do, it just won't recognize getChannel as a function it is being imported from index.js here is the fil...
How to communicate between shardings in discord.js 7 messages
forest sierra How can I exchange data between bot.js when sharding?
TypeError: Cannot read properties of undefined (reading 'FLAGS') 11 messages
candid dome I am creating an application (Bot in Discord) with NodeJS to interact with an AI through an API. When executing the app...
Need help with slash CMDS 18 messages
rancid wasp So I was just wondering how you add a prompt the commands so for example/ say`prompt:` Any one who has any pointers let ...
Export Bot Output to Google sheets 2 messages
lunar canopy I am trying to have my discord Bots channel output get exported to a google sheet when a user uses it. I tried setting ...
i need help with " await member.roles.add(role); " 9 messages
digital pawn Here's the code: ```ts import { SlashCommandBuilder } from '@discordjs/builders' import { Client, CommandInteraction, R...
How do you call a button interaction from a command file? 11 messages
radiant rose ```js const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Events } = require('disco...
How do I use Global Commands in Discord.js? 2 messages
radiant rose I was redirected here from the official Discord Developers server. I haven’t developed in discord.js for two years and I...
create channel 5 messages
timid hare Unable to create channel inside of category
GuildMember (options.getMember) 6 messages
last relic Hello im currently trying to get a guild member but i seem to get this issue Code: https://srcb.in/ndBGoKBDAz Issue: T...
No `Ready` event dispatached 3 messages
river wave I am using `@discordjs/ws` version `0.6.0`, and `@discord/rest` version `1.5.0`. It seems like I am not receiving the `...
@discordjs package
Trying to set the attachment a user gives as the embed image :) 12 messages
deft isle I have a suggestion command and it has the option to add an attachment. I want said attachment to be the embed image but...
@discordjs package
Is there a way to link a user inside embed.addFields ? 2 messages
grave tulip Seems that i only can link users inside the description field and not in custom fields.
Error occurred when install opus on centOS 7.9 5 messages
lofty ferry i have err when i trying to install discord js module on CentOs 7.9. And it return me an error when install opus part He...
GuildDelete Event somehow gets triggered when I restart my Bot 7 messages
vagrant sierra I have no idea what's happening but if my bot (docker container) restarts, this notification gets sent. A lot of inform...
Randomly broke 7 messages
dull wing I have been using discord.js 13.3.1 for a bit now, while yes I understand I should update my code has been running fine ...
`channel` property is nullable in ChatInputCommandInteraction 5 messages
near finch Why is the channel property inside a ChatInputCommandInteraction nullable? If it's a **chat **inputcommand, then it need...
are interaction id's and message id's unique across all guilds and channels? 3 messages
cerulean bloom i am storing guild and channel id's with my interaction id'd but if the interaction id is unique and a no interaction id...
Channel can be viewed by everyone when permission is set to deny viewing channel 17 messages
vast cloud My command creates a new text channel, it was working earlier but recently noticed it was allowing the everyone role to ...
guild.autoModerationRules.edit appending keyword to AutoMod rule 6 messages
eager nacelle ```js const { Client, Events, GatewayIntentBits } = require('discord.js'); const client = new Client({ intents: [Gateway...
Ping not working 12 messages
nocturne plank Code: ``` const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder(...
Buttons... 33 messages
dusk fern Built buttons into my slash command, they output correctly!. However once I added the event into `interactionCreate` eve...