djs-questions

9202 threads · Page 122 of 185

Edit a message with it ID with shards 25 messages
cold plume ### Hello, im trying to edit a specific message in a specific channel. I have `getMessage` function than return me the c...
Im a bit new to js coding, so idk how to call functions at index 16 messages
signal hinge So, i want to make at different files (for not having all the coding on the index.js) the line of commands like "client....
My bot is not giving role when I react 63 messages
arctic sky It does not show any errors
how can I connect discord.js with my bot? 6 messages
faint beacon how can I connect discord.js with my bot?
a need help 2 messages
grave blaze how to use the sound's world bot to in the code in visual studio code
986538542350086175
My embed message result in a mess 39 messages
arctic sky > const csend_log = new EmbedBuilder() > .setColor(0x2b2b2b) > .setTitle('csend') > .setDescription('') > ...
Message from one channel to another not working 4 messages
spare scarab Hi all, my first post. I'm new to everything here but chatGPT put me on Java steroids til I reach what seems a very basi...
how can i run cmd in visual studio code 6 messages
faint beacon how can i use discord js in vscode i am new in programming so i need extended help
2 days and i'm still trying to fix this internal error :( 21 messages
tribal badge ``` client.application._patch(data.application); ^ TypeError: client.application._patch is n...
my reaction isn't being passed from one script to another. 11 messages
ebon patrol Passing ```client.on(Events.MessageReactionAdd, async (reaction, member) => { let r = reaction; let rM = reaction.m...
Oauth RPC 4 messages
rough raven Hi is this possible to combine oauth with rpc, like when user use oauth it enable rich presence on the user account ?
1003448629866020986
[FIXED] TypeError (reading 'user') when creating threads 47 messages
livid cape Started having this error pop up on two bots different bots starting around <t:1686789295> ``` TypeError: Cannot read pr...
1113356221962010634
DiscordAPIError: Missing Access 31 messages
low thicket DiscordAPIError[50001]: Missing Access at handleErrors (C:\Users\user\OneDrive\Documents\Discord bot\node_modules\@d...
How to make Buttons send a followUp? 19 messages
wary owl I'm using djs in typescript. When executing a slashcommand from the user typing it in, the interaction is of type `Conmm...
MemberRemove call when I kick my bot 53 messages
sinful fossil When I kick my bot of a server, I think that the event "MemberRemive" is called, and it makes a bug : ```java node_modul...
Will new username structures cause errors in references to old username structures? ex: user.tag 3 messages
shrewd plaza The title about sums up the question. My discord.js version is 14.5.0
Error fetching guild on client ready event 20 messages
formal smelt I have a function that will check for all guilds that have member count enabled However this specific group of code seem...
StringSelectMenuBuilder data 3 messages
formal burrow How to get selected data from StringSelectMenuBuilder?
Not working modmail 14 messages
cold zealot https://pastebin.com/5ccHd97mhttps://pastebin.com/5ccHd97m explanation of i want it to be: when i say claim it will say...
my bot doesnt charge slash commands 18 messages
frozen junco https://srcb.in/z1OoebNGYN https://srcb.in/yodINFujjL https://srcb.in/GuRYWagfWf
Why use @discordjs/broker rather than node-redis-pubsub? 3 messages
wintry mango I can imagine there being a benefit for discord.js-based applications, but i'm not sure what it is
998292157150535700
Websocket Ping Missing ? 6 messages
echo musk Ummm so i was trying to setup a little basic ping command with @discordjs/core and @discordjs/ws and i can't find anywhe...
998292157150535700
Get Guild's Name 12 messages
short cipher if i use fetch method to get guild name. Example code: ```js const server = await client.guilds.fetch(message.guild.id);...
Get interaction of an interaction 5 messages
pulsar fulcrum Hi ! I wanted to know, with discord.js `14.11.0`, there is a way to get an interaction sourced of another. To explain, ...
Unable to add "Cover Image" when I create a scheduled guild event 1 messages
prime stone Was hoping some one could help me with attaching a cover image to guild events. I managed to get my bot to make a guild ...
DiscordAPIError[40060]: Interaction has already been acknowledged. 213 messages
edgy cobalt Code: - ```js const collector = message.createMessageComponentCollector({ componentType: ComponentType.Button, time: 15...
What time format is msg.createdTimestamp outputting? 3 messages
vagrant steeple Hi all, trying to find how long it has been since a command has been called. Was trying to save a timestamp and then sub...
998292157150535700
DiscordAPIError[10062]: Unknown interaction 35 messages
nimble wolf help-me
trying to do a starboard system 36 messages
lost magnet https://sourceb.in/TFctbjoT1p setting the channel is fine and is entered in the database, but nothing gets sent to the c...
ReferenceError: icon is not defined 5 messages
pine turtle how can i fix this
Slash Commands Cooldowns 39 messages
regal atlas Hi, I just followed the guide for the cooldown but I get errors.
disable select menu 9 messages
random terrace I was told i cant do it but I just wanna ask here to make sure, am i able to disable an option in a select menu?
Webhooks VS Sending messages 6 messages
sacred wolf I have seen some bots use Webhooks instead of sending through the clieny for some messages. I believe Dyno sends event l...
Can anyone help me with this thing in discord.js buttons 4 messages
edgy cobalt I am creating a command in which if both the user(interaction user and the target user) clicks the button. Only then it ...
Slash Commands 3 messages
umbral kettle I am having an issue where /commands from my bot isnt working on another server. I am not sure what it is but I did giv...
TypeError: embed.addField is not a function 41 messages
hallow vector .
Embeds+slash command support 6 messages
dark basalt Greetings, Currently, I have a kick slash command, and currently it just sends the message. I want to make it an embed ...
Code isn't Registering Global Commands 53 messages
drifting inlet ```js const { REST, Routes } = require('discord.js'); const { clientId, token } = require('./config.json'); const fs = r...
UserSelectMenus 3 messages
uncut field How do a get the output from a userSelectMenu?
I Tried To Add Role To User 5 messages
turbid latch ```TypeError [InvalidType]: Supplied roles is not a Role, Snowflake or Array or Collection of Roles or Snowflakes. a...
Get Server ID on invite 10 messages
knotty osprey Is there a way to trigger a webhook to my server when the bot is added to a discord server? Basically I'm building a Di...
Channel Permissions 19 messages
last lantern hey im trying to get a specific role permission in a channel and copy its perms with another role in another word duplic...
guilds is not defined 24 messages
delicate hatch im trying to create a command to create invite links but i cant manage to define guilds.
I don't know how to make a conditional "if" in setTimeout() (related to roles) 43 messages
signal hinge Hi!!! So, i was trying to make a mute command, and the good thing is i was able to creating it. However, i use the funct...
Intents Error (Type Error) 38 messages
hallow vector ```ts const { Client, Intents } = require("discord.js"); console.log("Bot is starting..."); const client = new Client(...
How will djs handle bot tags, since they're not switching to the new username system? 11 messages
runic quail I read on the Discord dev server that they decided not to switch bot users over to the new username system (yet), and th...
Linked roles 6 messages
twin lion Hey guys in December 2022 Discord introduced the linked roles feature. If this feature is enabled on a server and a user...
[Registering slash commands] 18 messages
willow hare for now I register slash commands by the official guide from https://discordjs.guide/creating-your-bot/command-deploymen...
help me 14 messages
ocean hearth ```cmd node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ...
ExpectedConstraintError Role Selection Menu 5 messages
gilded flower I have 97 roles in my guild. However, when I use a role selection menu, it tells me `ExpectedConstraintError > s.number....