djs-questions

13317 threads · Page 129 of 267

Soundboard 3 messages
last relic Is it possible to customize the server soundboard using a client yet?
Detect if command or subcommand? 3 messages
rich sorrel - Using `[email protected]` on node `v18.8.0` Trying this code (used to enrich Sentry debug logs): ```ts if (in...
Multiple Interactions from collector 54 messages
charred igloo so i made this function, and for some reason i started receiving same events like 3+ times when button being clicked, i ...
Any way to use permissions for subcommands? 5 messages
devout tartan Title says it all
unable to verify the first certificate 10 messages
placid aspen I haven't been learning nodejs long , I don't know how to fix this problem ,can anyone help me? here is my code and t...
Role not appearing in category after adding it to permissionOverwrites. 30 messages
cerulean ledge I'm creating this just so that I can separate my issue from the others in the <#824411059443204127>. To summarize, my bo...
help 33 messages
I keep getting a weird error 8 messages
rotund tartan I need help with a weird error that keeps popping up
[Advice] Is it a good idea to use multiple discord bot instances over multiple projects? 14 messages
trim siren I have a discord bot which I want access to in multiple node projects. At first I thought of making a global `client` ob...
inherit roles from a channel 6 messages
jaunty crescent this is my current code, the role is created but the permissions not inherited
@discordjs package
ChannelType.DM Not working 5 messages
Collection<GuildMember>#merge(other: GuildMember) 6 messages
rigid remnant Hey. I am fetching data of two different guilds and need to get a collection where there only is the members who are pre...
Get all guilds that have a owner id of X? 7 messages
ionic wigeon How do I get every guild that have a matching ownerId. I "could" do: ```js const userId = "123456789012345678"; const Gu...
New slash commands are not showing up! 33 messages
uncut jasper Hey, I'm hew here! I recently started making a discord bot using the Discord Docs for the Rock-Paper-Scissors bot, and I...
@discordjs package dev release
cant edit message after bot goes offline 29 messages
hardy herald i've tried everything that chatGPT and i could think of to debug this. code below raises the error ```js ...
Guild-based commands not being fetched without an ID 5 messages
trim siren Weird thing going on. On another bot, when I use `await guild.commands.fetch()` without passing in a command ID, I'd usu...
Simple questioin 5 messages
marble inlet How can I write three minuses in emed and have them not turn into this?
Limit reactions to one per message 2 messages
turbid root discord.js :[email protected] Node: v20.2.0 I'm trying to make a poll bot based on reactions and I'm trying to limit ...
Display all commands in guild a member has permissions on 38 messages
mint oriole I cant figure it out ``guild.commands.cache.filter((c) =>member.permissions )``
Rate Limit 4 messages
grand bloom Is rate limit reset based on a specific time or does it depend on when you used the code?
Efficient way to fetch members count in a role 12 messages
cloud blaze Is there an efficient way to get the member count in a role. I was thinking `interaction.guild.members.fetch()` but I th...
Checking for role not working 8 messages
help 3 messages
rose smelt Hi
@discordjs package
Fetch ephemeral message 42 messages
jaunty crescent Is it possible to store the id of a message and then fetch it later on in order to delete it? I was able to delete the ...
@discordjs package
Pagination with Mongoose DB 73 messages
median frost I have a command where a user can add like reminders to the database. I have a command that shows the list of reminders ...
Q about external files 4 messages
fluid bison Hey all, I just have a question about running automatic functions in external .js files. I created a file in my bot dire...
Followed guide (Further `client.on` commands not working) 32 messages
zinc willow Hey, so I was following the guide (v14.11.0) (node18.15.0) (https://discordjs.guide/) (Copied the GitHub files) And the ...
How to handle a multi-message slash command? 7 messages
granite nexus Hi all, I am trying to figure out the best way to approach a project I'm working on. I am trying to build a command tha...
How would I do this feature 6 messages
boreal talon Let's say I was making a multi-guild discord bot with a dashboard and wanted the dashboard to have a section called staf...
@discordjs package
setDefaultMemberPermissions() for one of two roles that have same permissions 6 messages
thorny skiff How can I set default member permission to a slash command? I know there's `.setDefaultMemberPermissions()`, but I have ...
Can't login 11 messages
dense summit For some weird reason, it won't even let me login but yet it throws me this error today <:Thinkeng:264703959015489537> ...
Media Channels 43 messages
gaunt python discord.js seems to work fine with media channels, besides reading them as forum channels. Is the current implementation...
Interaction Handler (Buttons) 128 messages
grave stone Hello there. I am trying to make a giveaway bot without using SQL / any database. I am quite new in coding hopefully can...
What is the best database for discord.js? 4 messages
tidal lake SQL Or NoSql? MongoDB or MySql? or anyother? Which gives more perfomance and use low-memory?
what are zlib-sync, bufferutil and utf-8-validate for? 14 messages
icy stag Hello, what are zlib-sync, bufferutil and utf-8-validate for? I don't really understand the point of compressing websoc...
Discord API Limit 18 messages
stiff wedge can a bot send a DM to 100, 1000, or even 10000 users all at once when some kind of event is triggered? Whats the limit?...
Is there any extensions and tools available that provide autocompletion for discord.js using Visual 22 messages
jaunty crescent title
@discordjs package
Has newer v14 updates outdated the .sendTyping() method or am I just not using it correctly? 9 messages
grave crane I'm on the latest version (v14.11.0) and I haven't updated my bot in quite a while. I touched up on an old command file ...
event handlers 13 messages
cerulean epoch ```javascript module.exports = { name: Events.ClientReady, once: true, execute(client) {variable} ``` Is it ...
Is there a way to check if server banner is just an static picture or animated? 8 messages
topaz kraken For example in the command *Avatar* this works automatically by just doing this ```JS //In embed of course .setImage(me...
setInterval stacking even when clearInterval is being used 9 messages
delicate crane What I'm trying to do is set an interval to run a function every 5 seconds (This is for testing purposes only. Once I fi...
How do i display the ping of the bot and API ping 26 messages
rancid wasp Im useing the latest Discord.js But i cant find a working option any suggest im also useing / commands
Type 2 AutoModeration 2 messages
brave beacon ```js --------------------------------------------------------------------- const logChannel = interaction.options.getCh...
Deleting ephemeral messages? 35 messages
gaunt python So, when I try to use `.delete()` method on an ephemeral message, it returns this error: ```js node:events:491 thr...
v13 deprecated 5 messages
charred inlet is v13 gonna stop being updated?
Can't use Emoji from other Server in followUp. 14 messages
vernal siren Okay so I spent WAY too long trying to understand whats going on. My bot is in a server for custom emotes that it uses...
Link a PostgreSQL database to our Discord bot 5 messages
versed plover Hello, I wanted to create a postgresql database to link it to my discord bot but I don't know how to and if there's any ...
discord.js version 14 (DIRECT_MESSAGE) 21 messages
polar wave Hello everyone, I have a problem with DIRECT MESSAGE, to clarify the whole bot, here is just a simple example. discord ...
@discordjs package
read webpage and show body of page as status 6 messages
jolly imp I have a page,[ http://freeuk24.listen2myradio.com:6524/7.html] and i want the stauts to refresh every few mins and upda...
@discordjs package
how could roleat change with position(name of roleid) string change 13 messages
junior widget ```const { roleMention , SlashCommandBuilder, PermissionFlagsBits, EmbedBuilder, WebhookClient } = require('discord.js'...