djs-questions

9202 threads · Page 72 of 185

Command Wont Go Away 5 messages
fathom cliff For some reason my command was listed twice in the command list. So I deleted the command from my bot, then restarted i...
Expected token to be set for this request, but none was present 38 messages
paper iron I started to use discordjs/rest for some of my stuff to have less api calls in my overall code. One of those being the f...
1150878580193116250 998292157150535700
Nested Collector 15 messages
heady sand If i have a button that opens up a modal, do i add the modal collector in the button collector or is there another way? ...
Timezones inaccurate 15 messages
ocean falcon Hello! While designing a test bot from official discord.js guide and not changing a code I used /user which gives inform...
998292157150535700
problem with timestamp 3 messages
digital sinew when I type the command unmute the console reply DiscordAPIError[50035]: Invalid Form Body communication_disabled_until[...
bot invites unwanted members into private threads 10 messages
sage meadow hi, discord.js I programmed a function that emit a drop embed message (with button) in the channel that reached 100 mess...
Check for nitro 4 messages
sleek crypt how to check if user has nitro
Using a Discord bot from Nextjs Backend 5 messages
lament seal Is it possible to run a discord bot from the backend of a Nextjs application? If so.. any references/guides to help?
Creating-your-bot guide is quite confusing 14 messages
cunning epoch I'm at the commands handling / registering slash commands part of the guide. In the guide, at registering slash commands...
How to update style of a button? 25 messages
stark wave Hi, I'm trying to upgrade from v13 to v14. Given a message object, how can I update the style of a specific button?
1150878580193116250
command deploy stucked 6 messages
eternal peak Hello I was creating a Discord bot using https://github.com/OfficialDelta/TypeScript-Discord.js-v14-Template . It worked...
Never expiring button blocks another button 8 messages
deep jasper Hello 👋 I made a code so my buttons for a command never expire, but it seems to block other buttons from working. ```...
Slash Commands not showing 8 messages
spring quartz When I created my discord bot it was working good. But later I tried to add commands but it just didn't show up. The new...
Modal Id question 7 messages
dusky oyster Hey so Im just looking for some simple explanation on the custom id, so like, whats the job of it specifically, what doe...
Pre-fill message input with slash command on click button 18 messages
flint fiber the purpose of what im doing is to have a message send from my bot with button under, when a user click on a button the ...
Client as GuildMember 14 messages
burnt lynx Hello, this has probably been asked a million times, and I'm sorry for probably re-opening a topic. I tried my best to u...
1150878580193116250
How can i remove my bot from 20k+ servers 3 messages
winged jolt It is been a lot of servers since i created the bot so i just want to rip them off. There is 35 shards
998292157150535700
Need a help in Music command 5 messages
clear imp I have done with my music commands but the main problem is that the song is not playing. Full code : https://pastebin.c...
Returning bot's missing permissions 27 messages
winter minnow Hey, i made a function, which is supposed to check for the missing permissionsn in the array of permissions i give it. I...
Why isn't messageCreate getting triggered? 7 messages
fathom cliff ```js import { Client, GatewayIntentBits, Partials } from 'discord.js'; const client = new Client({ intents: [Gatew...
Permission Overwrites 10 messages
icy lotus Does the bot need administrator permission to set permission overwrites on a channel? It's only working for me if the bo...
How Can I Make File Attachment Option 3 messages
worn sorrel https://media.discordapp.net/attachments/1197096601987072000/1198442780394000534/image.png?ex=65beebd0&is=65ac76d0&hm=b8...
Cannot read properties of null when editing a automod rule 56 messages
plucky pawn ## Description When attempting to update an automod rule i get an error from discord.js that it can not read properties ...
1150878580193116250
Problem with Reddit API 10 messages
digital sinew When I run the /meme command, the console replies Unexpected token '<', "<!doctype "... is not a valid JSON (PS: I use ...
The reply to this interaction has not been sent or deferred. / Interaction has already been acknowle 2 messages
worn sorrel https://srcb.in/GN35ekBi2i
The reply to this interaction has not been sent or deferred. / Interaction has already been acknowle 13 messages
worn sorrel ```js ```
Attachment Memory Leak 40 messages
near turret Hi, I m experiencing a **memory leak**. Here is the command answer, this cause a memory leak of 5mb. In the second snipp...
1150878580193116250
what error? 5 messages
elfin bronze what error?
Rotating presence with 16x sharding 5 messages
twilit hull My bot has 16x sharding enabled, and I'm not sure at which level to handle my rotating client presence. Should it be don...
will multiple login with same token lead to problems 4 messages
ruby agate if for example i have one process that runs index1.js and another process that runs index2.js, and both use the same bot...
Create new role with defined Perm 34 messages
flint fiber After several search and nothing found i would like to know if there is a way to create a role with specific permission ...
MODULE_NOT_FOUND 1 messages
slate bridge Hello I have the problem that I am trying to use the node index.js command (to get my bot online), but it tells that ind...
1150878580193116250
Permission 6 messages
marble inlet ```js const hasManageMessagesPermission = interaction.member.permissions.has('PermissionFlagsBits.ManageMessages'); ...
Events.MessageCreate don't work 5 messages
lime dragon const { Events } = require('discord.js'); module.exports = { name: Events.MessageCreate, execute() { co...
Why Modal Isn't Open 20 messages
worn sorrel ```js const { MessageActionRow, MessageButton, Modal, TextInputComponent } = require('discord.js'); module.exports = { ...
How can I get online members and members on the voices 11 messages
kind terrace I want to get online and voice active members in commands like this : ```const { SlashCommandBuilder } = require('discor...
how to create a system of roles that such and commands can useis it possible to write this in json 5 messages
nimble relic ?
Can you cache rest only? 2 messages
torn sinew is there a built in way to cache requests? (using rest only)
998292157150535700
Shard & Guilds 6 messages
terse solstice So fortunately my bot is growing rapidly, and I chose to shard. But I am not really familiar with sharding since I've ne...
1150878580193116250
Has the embed attachment been changed? 2 messages
toxic field The code for sending the photo in the image above is the same but a few months ago it could display the image but recent...
guildMemberUpdate, function not executing as expected 19 messages
arctic siren **Node.js**: v20.5.1 **Discord.js**: v14.13.0 https://hastebin.com/share/etonilifab.typescript This function executes ...
1150878580193116250
Creating new category/channel error 10 messages
umbral idol Hi I keep getting this error: ```DiscordAPIError[50035]: Invalid Form Body name[BASE_TYPE_REQUIRED]: This field is req...
Where to import Routes in TS? 8 messages
stark wave When trying to import Routes to be able to update slash commands in typescript: ```ts import { Routes } from 'discord.js...
A discord bot to show every member's current time 16 messages
ocean falcon I have a private server where everyone lives around the globe. I just wanted to know if d.js is capable of checking the ...
998292157150535700
Separate instance of container for each shard 9 messages
summer wagon Is there any way to shard my bot in multiple processes? like running multiple docker containers for each shard?
1150878580193116250 998292157150535700
an issue with intents? 5 messages
rough verge i dont understand what's wrong with this code because it should work ```js const { Client, GatewayIntentBits } = require...
DiscordAPIError[50035]: Invalid Form Bodyname[BASE_TYPE_REQUIRED]: This field is required 15 messages
soft aurora // createTicket.js const { SlashCommandBuilder } = require('@discordjs/builders'); const { MessageActionRow, MessageButt...
help me please with embeds 7 messages
velvet thorn help
can my discord acc got deletd if i don't log in for too long 2 messages
slate lodge hi
djs memory usage in bun 20 messages
peak fjord hi, I’ve been running our test discord bot on bun to try it out (some websocket issues have been fixed recently) and it ...
1150878498534199426