djs-questions

13317 threads · Page 31 of 267

[RPC] Pause timer on ActivityType.Listening 3 messages
spare palm Is there a way to pause the bottom timer? I know it's not being updated, but I figured this is the best place to ask.
RPC
Type error with ApplicationCommandType and ContextMenuCommandType 13 messages
fathom onyx I just upgraded TypeScript and some other things in my package.json and it apparently now thinks that the following code...
node
Failure to push a slash command 4 messages
rough oak ``` const getMp3 = () => { const allTracks = fs.readdirSync(path.join(path.resolve(), 'audio')).filter(file => file....
.getMember() with Typescript 20 messages
pure vapor I saw that `options.getMember()` sometimes doesn't return a GuildMember. How can I filter this case out?
Ephemeral replay to a channel message 8 messages
pale moss Hey is it possible to replay to a message with an ephemeral or something similar (so only the user can see it, and it's ...
node
sweeping the cache 13 messages
dusky oyster hi, I obviously haven't ever used it, but is it recommended? And if I have GuildMembers intent, will it sweep that as we...
Can ephemeral ever fail and show up as a regular message? 5 messages
idle galleon Reason I ask is because I have confirm/cancel buttons on slash commands that can only be invoked with certain permission...
node
Scheduling messages through slash commands 6 messages
node
Problem with guild.members.fetch 22 messages
solemn sage For some reason, the code I provided isn't working. I'm not sure why.
How to send a file/attachment from an Attachment option on SlashCommand? 12 messages
pure vapor I've looked up that topic the the guide but can't find anything on how to send an attachment/file that I get from a slas...
node
TypeError [ERR_INVALID_ARG_TYPE]: The "stream" argument must be an instance of Stream. 2 messages
fickle bluff my bot has been running fine in production for years but today i'm getting this message on startup with no changes of an...
bun
Token is correct but still getting "Invalid Authorization Header" 3 messages
cunning elbow See title. I'm trying to `client.login(token)` and I've tried both `"Bot TOKEN"` and `"TOKEN"`, both give the same error...
node
how to handle interactions through interaction URL, no gateway 9 messages
rare wharf Hey, I haven't made bots in quite a while, so im kinda lost on how to do this in discordJS. question: - How do I use di...
node
Keeping A Channel Polls Only 13 messages
wanton plinth I'm trying to make a specific channel polls only. Since Discord doesn't have a permission set for this I've setup my bot...
node
(process:24892): Pango-WARNING **: 11:03:18.119: couldn't load font "Lato Not-Rotated 25px", falling 3 messages
magic cargo <#1115775988857581668> I can't download the font to my application ```bash (process:24892): Pango-WARNING **: 11:03:...
Can't install dependencies on discord.js repo 10 messages
visual narwhal Hi, I want to install dependencies to execute packages of discord.js repo, and I'm following the tutorial written on htt...
@discordjs package
how can i do customize bot with d.js 6 messages
dusty lynx How can customize a bot's pfp which is not my creation with using d.js bot
I can't run any d.js commands. 43 messages
finite surge I'm using https://discordjs.guide/creating-your-bot/slash-commands.html#individual-command-files to learn about d.js. I ...
node
SlashCommandBuilder defaults 6 messages
tiny bone So i have a really simple question, Is `SlashCommandBuilder` by default set to all contexts and integration types.
How are the documentation files from .api.json converted to .json? 4 messages
visual narwhal My question is simple, how are .api.json files like this https://github.com/discordjs/docs/blob/main/discord.js/14.16.3....
@discordjs package
Only Slash Commands Not Responding, Showing "The application didn't respond in time" with No console 14 messages
rocky sand I've tried everything I could, including regenerating the Token and creating a new discord.js project from scratch. Out...
node
Entitlement Update event not received after cancelling subscription 3 messages
raven oriole I'm currently testing subscriptions to my bot, and when I create a subscription an ENTITLEMENT_CREATE event is fired, I ...
node
Posting img with REST 4 messages
normal forge I may be approaching this in an inefficient manner, so while I am asking specifically how to post an image using REST, I...
bun
Bot Not Updating Voice Permissions 2 messages
wanton plinth I'm trying to have an event voice channel that is locked(`everyone` cannot connect or speak), but when an event is live ...
node
Database connection 12 messages
pale moss Hey I have a mysql database, I can connect to it and run CRUD actions. But I feel like the setup is wrong. I have this...
node
"cannot redeclare block-scoped variable 'data'" 7 messages
humble heath do i register all of my slash commands in ready.js? i had no issues with the following: const { Events } = require('dis...
why does my bot does random things 5 messages
gleaming copper my bot does some random shit idk why there are no errors idk why its doing it
Unknown interaction 35 messages
runic badger Hey! This is a bit of a weird issue, the code that wraps my dropdowns is quite difficult to pick apart on the backend to...
node
I have an error that i cannot solve. 5 messages
sullen merlin This error is just a console error but it works fine for me to the but, there is obv a problem. My code: https://sourceb...
Message periodic scanner 6 messages
pale moss Hey! I am trying to figure out if I there is a better way to handle my case: User can create suggestion on my server. ...
node
Can discord.js store snowflakes as bigints instead of strings? 3 messages
cunning elbow See title, I couldn't spot any options for it in the docs and I'm curious if it's possible.
node
How to differentiate between the possible errors when DMing a user? 21 messages
pure vapor I want to do send a DM to a user and handle the errors. I know that there is more than one possible error, but not how t...
node
Error that i cannot fix. 10 messages
sullen merlin I know that i asked help for this once but i still need help. This is my codes: index.js https://sourceb.in/LrDkNyzADH c...
Application command's options 6 messages
flat sorrel how can i get (for example) the name of the command, or the value? i know how to get the data, but i can't figure out on...
duration is null or undefined 12 messages
hearty rain when i do /addreminder 1s it just still says its undefined. ```const { SlashCommandBuilder } = require("discord.js"); c...
node
Bot not receiving DM's 8 messages
tribal magnet This is my bots code. ```js console.log(message) // If the message is from a bot, do nothing if (messag...
node
register commands for multiple servers 22 messages
hearty rain i got the code for my command register file from the docs. there you need to input a guild id, but what if you can add m...
node
error 6 messages
queen oar what is this error mean
Problem with buttons 9 messages
worldly crater I have this code, and most of the time (about 99%) it works without any problems. However, just a moment ago, the bot up...
node
Application not responding 38 messages
stoic stone Hello everyone I am following the discord.js guide on creating a discord bot and for some reaosn after following the ste...
ChannelSelectMenu 10 messages
granite mortar Does channelselectmenu support guildvoice channels ?? Thanks for help
node
Idk why am i getting this error while running bot for first time 12 messages
livid fable C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules\discord.js\src\client\websocket\handlers\READY.js:17 client....
node @discordjs package
Rtc region null 4 messages
dusty hollow https://cdn.uira.xyz/acoustic/uEPKgU.png only happens when u select a automatic region aslong as u assign a region it ...
Sharded Discord.js bot resets to initial presence status 15 messages
vernal siren I wrote a Discord.js bot in NodeJS that uses discord-hybrid-sharding to spawn my bot.js. In the bot.js code below, you c...
node
I got an error that I dont understand 11 messages
sullen merlin This is my codes: index.js https://sourceb.in/LrDkNyzADH commands\contest.js https://sourceb.in/BO3kmjr7MH And the error...
Range Error Shard 0 not found 11 messages
vague valve I'm getting a shard 0 not found error on the live bot, but I can't seem to replicate it in my dev environments. the full...
node
400 Bad Request (error code: 50240): You cannot remove this app's Entry Point 3 messages
tepid helm I'm getting this error on my discord bot, but I don't understand it, and the bot commands don't update on the server, al...
Button 5 messages
iron violet Hello, I have programmed a command that allows you to enter an embed using a button. However, after a certain time you c...
node
Embedded Platform 21 messages
scarlet geyser Discord has decided that it will be a good thing to not document the Embedded platform which infact is PS4 (and more but...
Incompatible embeds 3 messages
feral adder Hey, i need to copy my previous embed, but when im try to do this typescript give me error: ```Argument of type 'import...
@discordjs package