djs-questions

13317 threads · Page 50 of 267

Help with OAuth 5 messages
worldly lake Hey, im trying to get oauth working but i cannot figure out whats gone wrong. im using html and php to do this but i thi...
Error with a command 4 messages
dusty bluff Here is my code: ```const { SlashCommandBuilder } = require('discord.js'); const mysql = require('mysql2/promise'); cons...
discord api 6 messages
fiery valley How to get information whether a person has discord nitro on his account?
node
discord-hybrid-sharding? 4 messages
woven crest Hello, I have a bot with 31k servers, 31 shards. So I have add cluster but i have this error 5 minute after the launch: ...
node @discordjs package
add members to thread 12 messages
restive knot ```js case "adduser": { await interaction.reply({ content: `Please provide the ID of the user you want to ad...
Is this how I check if a user has boosted? 13 messages
warm sapphire https://old.discordjs.dev/#/docs/discord.js/main/class/GuildMemberRoleManager?scrollTo=premiumSubscriberRole https://ol...
@discordjs package
Automod command 46 messages
mortal venture This code should be creating a automod rule and selecting a log channel, it creates the rule but doens't select the log ...
messageReactionAdd not work 10 messages
novel fern Hello, when I restart the bot, the messageReactionAdd event no longer captures new reactions, is this normal?
How to remove a bot after a given time(days). 6 messages
halcyon pivot so I'm making a little bot called "Prison". All it does is adds a command /jail which takes two arguments, username and ...
cannot get messages from channel 7 messages
eternal bay yeah
Looking for a good way to organize subcommand groups 3 messages
crisp bone I am trying to organize subcommand groups and their subcommands, but I feel like there is a better way of doing this and...
node
help with command 5 messages
solemn nimbus so basically i run the command and its supposed to be an embed for users to click and the choose the reaction to open th...
TypeError: pendingTicketsChannel.createChannel is not a function 16 messages
solemn nimbus This used to work, but discordjs has been updated throughout the years and now it just throws the following terminal err...
ColorConvert error 5 messages
solemn nimbus Ive been getting this in my terminal ``` throw er; // Unhandled 'error' event ^ TypeError [ColorConvert]: U...
How can I catch specific errors, or what is the best way to handle error catching? 6 messages
honest quarry I'm sorry if this is a more common question, but I want to know how I can catch specific discord.js errors. For exampl...
node
Is it possible to mention a user without actually pinging them? 2 messages
cinder furnace I want to do this (image) but not make the user actually get mentioned, so anyone who comes by the message can quickly n...
unknown interactions 2 messages
steel coral i keep gettings this error when i use /itemsdat command
duplicated commands 11 messages
steel coral i did try to fix it but still it here is the code
Error says that it doesn't recognize the interaction 💀 2 messages
warm sapphire ```bash node:events:492 throw er; // Unhandled 'error' event ^ DiscordAPIError[10062]: Unknown interaction ...
Reconstruction 2 messages
solemn nimbus I had a bot designed for me back then that used Discord.js, Noblox.js, mongoose and fs and now most of the things don't ...
node
Unwrapping `Promise<x>` where `void` expected? 56 messages
unborn patio Hi. It's my first time moving to TypeScript from Rust (`serenity+poise`->`discord.js`) and I am trying to handle a `Gui...
bun
i need help by a bot command error code 19 messages
north pawn i have a command, and after sending the bot send a embed whit a button after pressing a button push a forms menu, when ...
How do I add temprole to any user in an automated way using djs14?? 83 messages
warm sapphire I know I can use dyno bot or carl bot for it but I want to automate it. Writing my own temprole feature feels like peeli...
node
I need help in making a mute command. 10 messages
Discod.js on node 14 3 messages
lavish lion I add discord.js version 13.17.1 in meteor project 2.15. and im getting "/APIRequest.js:34 W20240521-11:06:24.509(3)? (...
Repeated Slash Commands even when set to Global 4 messages
AudioPlayer Stuck in Buffering Status 4 messages
opaque maple I have a bot that can play Audio and has successfully done so for the last while. I have two instances with their own Ap...
member.joinedAt = null 8 messages
winged edge When I use the **GuildMemberRemove **Event the `member.joinedAt` is null. What am I doing wrong? Intents / Partials: ```...
What are some ways to make your code more neat and organized? 5 messages
honest quarry For example, slash commands. Is there a way to neatly organize what I've got going on here? Especially the ```.awaitMess...
node
How do I send timed messages using cron please? 7 messages
wicked cypress HI im not to sure how to work with cron and commands to end a timed message every midnight
Elements Limits / Max Length 13 messages
stoic terrace Hello, I am looking for a page with all the "limits" For example, max length for "name" of /cmd, max length for embed f...
node @discordjs package
@discord/embedded-app-sdk 3 messages
arctic quiver So I am following the current guide : https://discord.com/developers/docs/activities/building-an-activity#step-4-running...
Mutil-server support 24 messages
dusky oyster Hey so yeah, well, it is pretty basic question but could anyone navigate me how should I structurize folders/files or so...
An invalid token was provided. 27 messages
nimble relic ``` if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID'); ...
Manual sharding 22 messages
nimble valve I'm just asking this for the sake of my curiosity. So I have parts of a discord bot that uses Discord.js. Each part perf...
remove something specific from someones nickname 10 messages
balmy imp i want to make a bot where if someone has a nickname for example kermit - kelp it removes the - kelp and only keeps kerm...
function to verify image links, but the issue with an embed command 10 messages
lean mesa Good evening, I have a small problem. I’ve created a function to verify image links, but the issue with an embed command...
node
Authentification Links Userinstalled-Apps 2 messages
analog spoke Is it possible to log Users who authentificated with this link? ```https://discord.com/oauth2/authorize?client_id=CLIENT...
Send regular text in a message with an embed 10 messages
valid raptor So I'm trying to make my bot send a message that mentions a certain role when it sends an embed. **I want the mention an...
delete message on ready event 5 messages
tidal plinth i tried to exclude a message in event.js but that just doesn't work ```js interaction.channel.messages.fetch(messageid)...
node
channel_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake. 2 messages
viral nest Can someone explain to me why the text channel is not created once an option is selected from the selectmenu? Also, can ...
send buffer as file 3 messages
frail stump Is there a way to convert buffer to buffer resolvable or anything that message.channel.send({files:[]}) supports
node
user interactions 3 messages
tepid night how do I make my command be able to be used in dms, ect. when you authorize the application?
sticky message sometimes isn't sticky 6 messages
void gulch I've got this messageCreate event which is supposed to handle a sticky message in a channel, but sometimes it doesn't wo...
node
Can’t create channels 39 messages
lilac sinew my bot was working perfectly but after a while it won’t create any more channels: ```js if (interaction.customId === 'Bu...
hopefully two simple questions 113 messages
slate flax 1. how do I check my djs version? i just installed it and idk how to check 2. how can i use djs with typescript? i keep ...
Somethings wrong, idk 82 messages
midnight swift Btw token is reset so its fine
node
Bot not responding 48 messages
somber dew So I have created my bot and the terminal is showing no errors. Only problem is that when I try to execute a command e.g...
node
Receiving undefined for Message#guild although it should be Guild or null 21 messages
flint sinew undefined
Typeguard <GuildAuditLogsEntry>.extra to a channel 12 messages
vital flicker I'm listening to AuditLogEntryCreate (channel delete entries) and need to narrow down `.extra` to just a channel. I can'...
bun