djs-questions

13317 threads · Page 40 of 267

Can someone figure out what is wrong with this script? 30 messages
potent socket Text file with script below, i cant figure out what is wrong with my script because in the terminal (im using vscode wit...
Need Help 2 messages
hot terrace Uncaught Error Error: ENOTDIR: not a directory, scandir 'C:\Users\####\source\repos\FedMarketBot\FedMarketBot\commands\c...
Cache of GuildMembers 13 messages
swift gazelle Hi, how long does it take for the bot to delete members from cache? For get some full members of some roles i put this c...
Interaction has already been acknowledged 7 messages
API help Discord.js 14 5 messages
blissful gazelle I am working on a slash command that takes all players from a link / API with name and ID of a game. These IDs are taken...
Can @discordjs/opus be installed on Google Project IDX? 3 messages
upbeat trail When I tried to install it on my project that uses Node 20.11.1 and discord.js v14.14.1, it gave an error and wouldn't i...
node @discordjs package
So my commands doesn't work. 6 messages
sullen merlin On the cmds there is no error, but on discord it says: The application did not answer. Here are every code that is with ...
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new? 26 messages
hazy widget I want to get user's @me info with access token, but it says im unauthorized? ```js const { REST } = require('@disc...
@discordjs package
Random shutdowns due to sessionInfo being null 35 messages
hollow glen ```json /nova/node_modules/.pnpm/[email protected][email protected]/node_modules/discord.js/src/client/websocket/handle...
node
help 3 messages
amber kite how do oli make this does it require coding?
What's wrong with this slash command? 12 messages
severe shell ```ts export default class ChemInfoCommand extends BaseCommand { constructor() { super( new SlashCommandBuil...
bun
slash command invisibile for everyone 21 messages
blissful plover what is syntax for slash command only visible for specific role
node
My slash commands aren't registering in my discord server. Client.on() doesn't seem to run. 19 messages
thorn mortar Github: https://github.com/Niimaii/Harmony I am putting the repo here to make things easier. I put several console.lo...
DiscordAPIError[10062]: Unknown interaction 11 messages
plush obsidian ```js Slash-Commands registriert Editing existing embed... Fehler beim Ausführen des Befehls: DiscordAPIError[10062]: Un...
How do I make this selected? 5 messages
vague forum How do I do it as soon as I click away it will receive the interaction but it will continue to be selected even if I upd...
Random shard sessionInfo errors 51 messages
spring jolt Hello, I have recently started getting an error when trying to start my bot. The error seems to be coming from Discord...
bun dev release
TypeError: Cannot read properties of undefined (reading '_add') on InteractionWebhook.send() call 14 messages
gritty violet I have been getting this error randomly for some time ``` TypeError: Cannot read properties of undefined (reading '_add'...
interaction.guild 17 messages
hard nebula When I use console.log(interaction.guild) it returns null. I also can’t get the owner id or the guild name
Ephemeral messages 3 messages
polar forge Is it possible to send an ephemeral message to a different player than the one who sent the command? I'm looking at try...
errors installing @discordjs/opus 3 messages
main star read below
node
Sending videos in embeds using embed objects 3 messages
serene zealot As I understand, the EmbedBuilder class does not allow for usage of videos in embeds, only static images. However, the D...
how do i find my AUTHORIZED_USER_ID 52 messages
obtuse tree how do i find my AUTHORIZED_USER_ID
using only id to send DM 10 messages
true yarrow hey guys, quick question. to avoid api calls, I plan on saving a user's id to my database, then when I need to DM them: ...
How to upload files using REST API? 8 messages
frail ferry How do I use `@discordjs/rest` to upload file? <https://discord.com/developers/docs/reference#uploading-files>
node @discordjs package
User Installs 23 messages
radiant cradle is there any way to use the user installs for v13? i have a select few commands that id love to use with them but cannot...
reply feature 6 messages
scarlet sinew I wanna make an interaction that is used on a message where it can find all replies to a message and also find any messa...
Shard activity 5 messages
quick fjord ``` bot.once(Events.ClientReady, async () => { shardId = bot.shard.ids[0]; bot.user.setActivity({ name: `/help ...
. 2 messages
.addChoices 4 messages
gleaming saddle Hello, little question, is it possible to link some . addChoices with values that are representative of embed? If I make...
General Question 23 messages
gloomy flame I had a conversation a conversation with a bout that saying and trying to convince me that using 1 event for each one th...
node @discordjs package
How do I create a User App with Discord.JS? 10 messages
shy lynx I imagined I could use the same setup I have for... `Routes.applicationGuildCommands(env.appID, env.defaultGuild)`, but ...
node
premiumSubscriptionCount is NaN 27 messages
jovial helm what could be the cause of this?
node
I get an error 15 messages
lapis grail const { SlashCommandBuilder, ActionRowBuilder, ButtonBuilder, EmbedBuilder, ChannelType, Permissions} = require('discord...
vouch bot win rar file 7 messages
lyric tree need help to add the bot to my discord server please help me
setName/Description`Localizations` 9 messages
gleaming saddle Hello, I have a question for. setName/. setNameLocalizations, . setDescription/. setDescriptionLocalizations is it poss...
DJS v12 to v14 or newest help 6 messages
slate raptor So I am really outdated with my old bot I’ve tried to figure out the new docs and I don’t know I am use to v12 so I am n...
"CORS" dashboard issue. 6 messages
crystal bluff *Hello!* I am currently unsure what Is going wrong in my piece of code, I am hosting the dashboard on `glitch.com`, and...
node
Team Status command 25 messages
prime vortex The command will now always return this error:
guildMemberRemove event don't work 8 messages
wanton depot Hello, the `guildMemberRemove` event does not trigger when my second account which is the server while in the same circu...
REST Crash 28 messages
covert nest I am using the REST class of discord.js to edit messages with the interaction token, I am using .patch on the webhookMes...
node
How do i is user dm enabled? 4 messages
weary venture Question
Argument of type 'ButtonStyle.Link' is not assignable to parameter of type 'ButtonStyle' 34 messages
buoyant basin ```js Argument of type 'ButtonStyle.Link' is not assignable to parameter of type 'ButtonStyle'.ts(2345) ``` Im using `@d...
@discordjs package
how do i start doing bots? 24 messages
fierce breach How do I start? I’m a beginner
node
Slash Commands were showing just fine, then they disappeared after a server restart 39 messages
mint dove Hi, I was updating my bot, the commands were showings in the serv, and all of sudden after a restart of the bot, they st...
node
canvas is not registering my font 2 messages
ornate notch Why is canvas not using my installed font? i am using `await registerFont("Fonts/gagalin/Gagalin-Regular.otf", { family:...
Keep getting 500 Internal Server Error when editing messages 6 messages
opal frigate Hello discord.js community, # Context **Node version: ** 16.17.0 **Discord js version: ** 14.9.0 I'm trying to implement...
node
guild members timeout 79 messages
final harbor I got this error on my bot
node
Best command handler 19 messages
earnest lagoon what is overall the best command handler i should be using or a package... people in diffrent discord servers recomend ...
Cannot read properties of undefined (reading 'roles') 56 messages
plucky hedge I am trying to get the user's highest role and compare it to a role they are attemping to give another user through a sl...
Message content is empty, unless the bot is tagged 38 messages
storm creek The message content field will always be blank, regardless, unless I mention the bot. Why's this?