djs-questions

13317 threads · Page 74 of 267

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...
node
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 ...
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)
@discordjs package
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...
node
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 20 messages
arctic siren **Node.js**: v20.5.1 **Discord.js**: v14.13.0 https://hastebin.com/share/etonilifab.typescript This function executes ...
node
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 ...
@discordjs package
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?
node @discordjs package
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...
Technically not discord.js but still related 2 messages
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 ...
bun
Trying to get THREAD_STARTER_MESSAGE content from a message 12 messages
surreal wolf Hello, i have a ticket system made with a bot, when a ticket is closed the bot lost scope of that ticket and that is int...
avatarURL function is broken? 7 messages
wary canyon Hey. I've been making a website with an integration through a Discord bot to get a staff list and its information. I've ...
node
Distube v4 custom plugin DT.emit() error 3 messages
Discord.js Chess Bot 9 messages
nova bobcat Hi, would anyone be interested in helping my project of making a chess bot? The project is currently 50% finished and ha...
node
Help bot not online 42 messages
twilit oak Hello there I just did a an the same code without any error but why my bot doesn’t work?
Hello can you help me please ? 9 messages
odd flint My "node main" command does not work.
Failed to fetch error in @discordjs/rest 49 messages
indigo lance Hi, I'm using @discordjs/rest & discord-api-types, I'm following the documentation, but for some reason, I'm getting Fai...
@discordjs package
GuildMemberAdd 11 messages
wise ivy How come this doesn't work?
Better way of checking if a channel is locked or not 3 messages
torpid holly . The codes above do work, but I feel they're not performant and there are probably better ways of doing this, any idea...
get application commands 11 messages
queen glen As part of the js file that registers my commands, I want to get the existing commands before registering the new one. T...
Class Commands 2 messages
moving Chanels between category’s without permissions loss. 5 messages
trail schooner Does anyone know the proper way to move a channel from one category to another without removing the role permissions add...
TypeError: Cannot read properties of undefined (reading 'user') 4 messages
stone peak ```js // userCommand.js const { EmbedBuilder, ApplicationCommandOptionType } = require('discord.js'); module.exports = ...
Repeated slash commands ? 3 messages
amber quartz Why does this happen, the same command is repeated, or I get commands that no longer exist in the bot code ?
Interaction Failed 12 messages
summer salmon ```js if(json.data?.owns_license == true){ const embed2 = new EmbedBuilder() .setColor('#FFFFF1') .setTitl...
Category Position Bug 9 messages
pallid barn Although i set "**position: 0**", it don't creates the channel at the top left, but why?
Set Presence on Identify per shard using internal sharding? 20 messages
wintry mango Is there a way to set a different presence on different shards when using internal sharding?
Channel webhooks 10 messages
scarlet pewter Here (https://discord.com/channels/222078108977594368/824411059443204127/1196811552846786702) is explained what i want t...
Getting messages from a channel 4 messages
spark heath Is there an example anywhere in the guide or docs for fetching messages from a channel? The only examples I can see star...
When do Member roles cache? 4 messages
opal wind I need to make sure when a member leaves a guild I can access all their role ids somehow. Fetching all the members in th...
How do I check if someone if a user is an admin? 19 messages
keen lagoon How do I check if someone if a user is an admin?
Express x Discord.JS 2 messages
molten atlas Unsure whether this is the correct forum for this type of request however I may as well chance it. I am attempting to ...
node @discordjs package
Collectors crashing bot 7 messages
lapis spoke ```ts await buttonInteraction.showModal(modal); // Collect a modal submit interaction const filter = (inter: Mo...
How do I get premium_type of a user or is there no way in discord.js? 4 messages
oak vigil I looked in the docs, but couldn't find anything. The user is not partial and fully fetched. I tested it with curl and i...