djs-questions

13317 threads · Page 76 of 267

Super high latency to Discord API 5 messages
quaint loom My server is in dusseldorf, germany. My bot is experienced with an average ping of about 2000 to 3000 milliseconds. Any...
Canva Image to .setImage() 8 messages
supple pumice How can I add a @napi-rs/canvas image to a embed as image in a .setImage function?
@discordjs package
Creating multiple selects command 10 messages
thorny warren Hi, i'm currently trying to create a command which utilizes select function, i want to collect 2-3 values one after anot...
Cannot Read Properties of undefined 11 messages
languid spear I'm using a starting guide for discord.js (discordjs.guide) this is the code it gave me ```const { Client, Events, Ga...
node
use setEmoji to set no emoji/ remove an emoji from a button 11 messages
frosty mulch I normally use setEmoji({name: undefined}) when I want to not have an emoji on a button, generally for dynamic button cr...
AutoModerationRuleUpdate -> OldRule is null on rule actions update 3 messages
gusty thistle the old rule is null when I update the rule's actions (timeout, alert message). Is this normal behaviour? Yes, i am awar...
Importing embed and message variables from another file. 22 messages
deep jasper Hi, i am trying to make a button that never expire, so im using the method of doing and even handler inside client.on in...
Hey, i need help with a command 8 messages
vital pollen I am making a verify command and I would like to know how to implement that the role is given at the moment of hitting t...
command deploys faster than i can fetch info from db 7 messages
plush lichen My goofy ahh code: ```js const { SlashCommandBuilder, EmbedBuilder, AttachmentBuilder } = require('discord.js'); const {...
node
Using InteractionCreate want to add multiple emoji/unicode images to text v14.14.x 4 messages
brave gyro My bot is taking in a value and returns back multiple lines of text. For each line if text I'd like to include an image...
node
How do i get user's guilds with @discordjs/rest 8 messages
hazy widget I got the access token and i want to fetch user's guilds
@discordjs package
Bot is ready but not responding 10 messages
fluid geyser I don't know why this happened , the bot was working perfectly and I didn't edit anything. just stopped working after ru...
node
Make bot send message from a specific user in a specific channel 5 messages
fallen hull I'm trying to make a bot send a message to a specific channel, the message sent would be something I say in another chan...
Im looking for a scripter 2 messages
node @discordjs package
Disable a button using its custom_id 57 messages
civic citrus Can I disable a button (that has not been assigned to a variable) by using it's custom_id? I am creating buttons dynamic...
error in code 16 messages
vague peak these my package .json when i run npm test or start it show error but when i run using node index.js it work fine please...
Is this possible through Discord js? 24 messages
distant cape The event is listed as thread_creation_started but I cannot find any documentation on this. I want to be able to create ...
discord.js collections 3 messages
alpine vapor hello i have two discord collections one for my slash commands and one for my user commands (context menu commands) but ...
node
Oauth rest 27 messages
normal estuary ```js export async function getUserGuilds(token) { const rest = new REST({ version: "10", authPrefix: "Bearer" }).se...
@discordjs package
Removing messages from cache after a certain time 9 messages
torpid holly ```js messages: { interval: 3600, filter: Sweepers.filterByLifetime({ lifetime: ...
What's this 3 messages
lilac gyro ?
node
context menu loading 3 messages
alpine vapor i have a custom command file setup like this https://sourceb.in/EeStdEJZDN but want to be able to set user commands
node
Guild .memberCount vs .approximateMemberCount? 18 messages
lofty steeple What is the difference between a guild's memberCount and approx MC? I don't see a memberCount in the actual API-provided...
node
How to use a custom font in canvas 3 messages
safe stump code: ```javascript registerFont('Montserrat-Black.ttf', { family: 'Montserrat Black' }); //... ctx.fillStyle = 'white';...
node
targetchannel.send is not a function 12 messages
split coyote ```js await client.guilds.cache.map(guild => { guild.channels.cache.forEach(async channel => { try { ...
node
how to cluster on more then one computer 11 messages
alpine vapor im wondering if / how you could have two vps running a discord bot to split up the interactions / commands to make your ...
node @discordjs package
can we pass the slash command using code to channel ? 7 messages
reef viper I want to send a slash command to channel through the code on particular createMessage in channel, is that possible usin...
@discordjs package
Voice channel status update? 4 messages
outer lantern Is there anyway to update channel status using djs?
Spurious messageUpdate 13 messages
digital nova I just observed a messageUpdate event emitted on a message from 2018 that doesn't show as edited. What can cause this ot...
How do I send a message after an interaction.update without this problem? 2 messages
elfin bronze How do I send a message after an interaction.update without this problem?
"Cannot send empty Message" but its an valid embed 12 messages
fringe girder ` if (!user) { return message.edit("❌ Unknown user!") } let embed = new Discord.MessageEm...
node
Bot Stops Randomly (Error) 21 messages
signal sky Does anyone know what the error below is from? It randomly stops my bot. ```/home/container/node_modules/discord.js/sr...
Creating slash commands 32 messages
scenic lark How do I create slash commands? Currently, I am just listening for messages and checking if the message is "/verify" but...
Default commands get added for no reason? 9 messages
daring ocean idk why it just adds a bunch of different default like commands, i have just 3 commands getting loaded.. is there like a...
@discordjs package
Editing multiple action rows 12 messages
latent basalt I am having issues when I try to edit multiple action rows (Buttons)
node
Best temporary storage? 3 messages
Syntax error 4 messages
languid tiger async execute(interaction) { ^^^^^ SyntaxError: Unexpected token 'async' at internalCompileFunction (node:interna...
DiscordAPIError[50035]: Invalid Form Body 25 messages
fallen slate After yesterdays scheduled restart, the following error appears after a button interaction reply. This code worked up un...
Issue with guild.roles.create() 138 messages
scenic lark I am trying to create a role with discord.js, using guild.roles.create(). The promise this function returns stays in the...
Interaction already deferred. 5 messages
hardy briar https://github.com/KiraKenjiro/bot The bot at the moment works almost *perfectly*. qj's been a saviour and helped me wi...
How to add support for private slash commands 12 messages
native sinew Not a big Discord user so lots of common stuff I don't know. But I've made a bot for use just in one channel with a coup...
Selecting the same Slash Command option multiple times 3 messages
gloomy heron Hello. Currently learning the basics of Discord.js, I was wondering if it supported selecting the same option multiple t...
Discord Error Code 10015 when using a collector to handle button events 32 messages
slow saddle Hello! I am working on a bot Im on the development team with and I dont know how to fix this issue. It is showing a "Unk...
How would I send an interaction user a message DM? 7 messages
tribal patrol Currently trying to send a user a DM, I've had a quick scope at the docs and Noticed `createDM`, Not sure on how I woul...
Discord TTS bot 37 messages
copper patio Hi there I am trying to create a discord bot where it would join a vc that I am in and when I use !t <Text> it wold join...
How to retrieve original command interaction options from select menu interaction? 3 messages
hollow night Hi people, I am trying to figure out if it's possible to retrieve CommandInteraction options from a StringSelectMenuInte...
When I interact, whether creating ephemeral messages or editing (editReply) it doesn't work 32 messages
woeful crescent When I interact with a dropdown or button, whether to edit or create a new ephemera message, it does nothing, and after ...
Execute Command DM Bot 2 messages
How do i set a custom status, not a "Playing" one. 7 messages
hazy widget I noticed that bots can now have a custom status which isn't the good old playing one, how do i do it in djs?
Format Embed Description 6 messages
queen sinew I'm having trouble formatting an embed leaderboard with the embed builder. I have the following for my embed descriptio...