djs-questions

13317 threads · Page 186 of 267

Random Bot Restarts 6 messages
change embed with id 3 messages
unreal stream i have created a database to store the id of the last embed but i want to edit it in a other event my questions is how t...
dms to bot not received 3 messages
tough stag ```js const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, Ga...
Events not triggered 23 messages
turbid ice I am writing a bot (with administrator's permissions) using discord.js written on TypeScript. It's main job is to listen...
how to make createReactionCollector work 12 messages
tough stag this is the code i have
How to make a function and pass *client* const in a parameter? 8 messages
weak kestrel Im making a slash command that needs *client* but it's not defined. I have been said that this is a good way to make thi...
How to create a message component interaction reply occur near the original message? 9 messages
elder lynx I want to have a 'Get Link' button which upon clicking replies with a URL. This URL message must only be visible to the ...
Is there a way to display a table 10 messages
tall mist Is there a way to display a table for users?
Is there a way to find the latest message a GuildMember has sent? 9 messages
quasi ibex I have an external program telling my bot to roll a die. That part's fine, but I want to roll said die in whatever chann...
Role command 5 messages
west iron how to make a command that count the ammount of users that has a specific role
How to make a slash command restart a bot 3 messages
dim edge Im trying to make a slash command that will restart my bot but i cant work out how to make the bot interact with Command...
Bot shard questions 6 messages
versed karma I have some questions about sharding: - The discord guild will be receive always the same shard? - How much variation is...
How to add an autofill feature 4 messages
tall mist How do i make it so my bot autofills the paramaters required for it to function?
How do I fix syntax error 10 messages
Send messages 3 messages
exotic coyote How can i send a message to a specific channel from ``Client.on('ready'`` ?
Discord Bot doesn't react back. 6 messages
tired galleon if i type, .ping or ping, the bot doesnt react with pong! const { Client, Events, GatewayIntentBits } = require('disco...
How far back does Message.delete() work? 7 messages
runic quail I want to create a purge command that can go past the two week limit of bulk delete. I would do so by fetching the last ...
interation.update & modal 12 messages
shrewd ice hi, is there an option to disable a button after click and open up a modal?
How do i add a role to a user(user option in interaction) 4 messages
neon timber help me please
Catching Errors 5 messages
delicate marten Greetings, I am trying to catch an error: ``` Error [GuildMembersTimeout]: Members didn't arrive in time. ``` I think I ...
Option player is of type 3; expected 6. 9 messages
wheat rain Unsure why this is happening, I have the guild intent and this is my code: ``` TypeError [CommandInteractionOptionType]...
Discord js v14 Simple code not working 17 messages
red coyote My code: ```js const Discord = require('discord.js'); const client = new Discord.Client(); client.on('ready', () => { ...
messageattachment with embed 14 messages
granite sand ```js const attachment = new MessageAttachment('././image/spellbook_legendary.png'); let embed_...
Why interaction.components values are undefined?? 4 messages
How to remove a role to the user who used the command? 8 messages
wicked scroll I am working on a command for lottery in my discord-minecraft server.
Edit Ephemeral Responses 13 messages
narrow crystal I am wondering if it is possible to edit a ephemeral response. So for example, I am currently using ```js await interact...
Spawn shard on specific guilds 4 messages
ember zinc How to tell the shard to only run on specific guild, and rest of the shard runs on other guild?
Slash command choice 3 messages
weak kestrel How to make that is one choice is selected, the bot respond something and if its another choice, its somthing different?...
How to make a 2 choices command? 5 messages
weak kestrel I want to make a 2 choices command and idk how. Here is where I am
Can botted user accounts interact and complete Discord's rules screening? 13 messages
Dev Environment with Sharding 11 messages
manic vault Hey, I'm about to start working on getting my bot ready for sharding, but I'm not sure how to go about creating the envi...
can anybody help 25 messages
iron girder ```js const embed = new EmbedBuilder(); try{ fetch("https://www.reddit.com/r/memes.json?sort=hot").the...
Modal interactions 3 messages
west iron what do i place in interactionCreate.js for a modal to work?
Changing nickname of a member depending of the rank he has 10 messages
glass vigil So basicly I want a bot that automaticly adding prefix to a player for example if I give someone rank Verified I want hi...
Seeing if my bot disconnected with voiceStateUpdate 3 messages
drowsy crest How through this listener can I check to see if my bot was in the voice channel prior to disconnecting (so I can do thin...
Server info command 4 messages
weak kestrel How to I make a slash command that respond the Server name, age and the *never expiring* link to join it?
A strange issue with two files not firing (DMs Event and a Command) 7 messages
graceful burrow I've got a pretty large bot, but all runs fine except these two files. The two files in question are an event and a com...
Is there a way to communicate between web and discord.js? 6 messages
lean elbow Hey, the question is in the title. I wanna create a dashboard
One file is imported multiple times 3 messages
vast trench Hi, i have code in my index.ts ```typescript for(const element of fs.readdirSync(`${__dirname}/events`)) { const eve...
Mentions with defer 25 messages
tardy folio How can I mention people after deferring the interaction?
how do i change the restRequestTimeout 21 messages
latent sky hello, i was recently guided to change the restrequesttimeout to fix an abort error, but how do i do that?
how do i make a bot which can send embeds 2 messages
how to create a box like this. 5 messages
iron girder it popup when i click the button.then it renamed my server nick name
Issue with the command not actually executing or recognizing Id or Mentions 4 messages
Add channel permissions without completely overwriting them 14 messages
steel maple I was thinking I could use something like .push to add to the channel's permissions array but couldn't find a way to act...
Typing issue in typescript resolved 13 messages
wide gull Typing problem where it is not allowed to take a channel through the client and send a message directly Only 2 lines of ...
DM user using REST 13 messages
lost coral Hi, I want to send a DM from sharding manager so I made this method ```js async dmUser(userID, payload) { const ...
@discordjs package
making users only press an option once 5 messages
unreal ingot I have a set of buttons with different options and want to know what i could do for preventing them to click the buttons...
How to deploy changes with zero downtime? 17 messages
deft breach Currently hosting on EC2. Thinking of having two directories. One for the current version and one for the new version. W...
Caching 9 messages
tardy folio Would there be an issue if I limit `GuildManager`, `ChannelManager`, `GuildChannelManager`, `RoleManager` and `Permissio...