djs-questions

13317 threads · Page 170 of 267

How to differentiate between server mute and self mute? 4 messages
ruby hull I know GuildMember.voice.mute exists but it says true regardless of self or server mute.
Event : messageDelete gives a message object with content and author as null 24 messages
supple fern I have a audit functionality for my bot. It sends a log item to the server when a message is deleted from the guild. Ev...
guildMemberUpdate (discriminator) 2 messages
stable tide ```js client.on('guildMemberUpdate', (oldMember, newMember) => { if (oldMember.user.discriminator !== newMember.user...
Websocket closing after some time (unable to reconnect) 24 messages
wary canyon Hey, I've been developing the bot, and for some reasons, some time after starting it, it disconnects, no error log or no...
Modal Listeners "stealing" Interactions from each other 7 messages
pulsar escarp I have the following problem: When a user executes an interaction, the bot shows a modal and then uses `awaitModalSubmit...
Playing Status not working 4 messages
crisp valley Setting my bot's playing status gives me an error that says "TypeError: client.setActivity is not a function". Can Someo...
How to create multiple button row? 9 messages
stray yoke I'm using `New ActionRowBuilder()` to build a row of buttons. But how to add multiple rows of buttons to a bot reply? H...
Is it ok to require on every interaction? 5 messages
check if author of message has roleId 6 messages
wise plover `if (message.guild.members.cache.get(message.author).roles.cache.has(roleID)) {` `TypeError: Cannot read properties of u...
Unavailable guilds removed from cache or not? 11 messages
wanton geyser Are unavailable guilds removed from cache or still kept in cache but marked as unavailable? Version: v14.3.0
Reactions count are different of the discord showed ones 4 messages
iron dirge Reactions count on Discord does not reflect the real one ``` console.log("Reação removida"); react...
Await reactions stop at 4 reactions of 4 different user 7 messages
wise plover ` theMessage.awaitReactions({ filter, maxEmojis: 4, maxUsers: 4, time: time1 * 1000 })` ` ...
Do you need to handle forum channels differently? 22 messages
dawn robin When I try use .get on a forum channel it comes out undefined. I am 100% sure the bot has perms to have full access over...
Error when deploying/registering commands 4 messages
dawn bloom ``` const { REST, Routes } = require('discord.js'); const { clientId, guildId, token } = require('./config.json'); const...
Timeout Listener 16 messages
tulip elbow Hello, I try make timeout listener: ```js // core bot.on('guildMemberUpdate', (member,newmember) => require('./events/ti...
Possible to spawn for a single server with sharding? 9 messages
primal horizon I'm looking to have my bot do some specific processes in my server alone using a cron job (assigning roles based on data...
shardError 5 messages
coral drum Shard Error: WebSocket was closed before the connection was established Is djs automaticaly reconnecting when shard err...
Using raw APIInteraction data with DJS 16 messages
fathom hawk I am no doubt going to sound like a moron with this question and perhaps it's not even something relevant to this Discor...
Sending DMs to a user who the bot does not have a common guild with 4 messages
granite aspen Here's a situation. A user is banned by the bot and then the user has to be messaged by the bot they are banned. Can the...
How to reply to timed out modal? 5 messages
serene walrus After doing `await interaction.showModal(theModal)` `interaction.isRepliable()` is `true` `interaction.replied` is `tru...
Channels are becoming de-cached? 34 messages
tribal perch I have a project, that scans voice channels - and converts everything into a tidy embed (see image), however after ~12 h...
Strange behaviour in model initialisation 5 messages
fringe mountain Hello guys! I have a pretty strange behaviour in my code that I can't seem to understand. I am developing with Discord....
Can't find module (TS) 4 messages
ionic iron Help me, am new in TS. I wanna learn
Bot randomly goes offline, script keeps running 13 messages
leaden tulip Since I updated from v13 to v14 my bot goes offline randomly after a few hours/days. Both on my cubes.host and my local ...
<function> is not a function 13 messages
dawn zephyr Hey, I have a function out of anything, at top of my code named ticket. It works anywhere else but does not work in a sp...
How to have a bot get a random image off of a subreddit. 6 messages
crisp valley I am trying to get a discord bot to get a random image off of r/cats with a slash command but I am unable to. Does anyon...
How to handle modal submit timeout error in outer catch? 6 messages
No exproted member PermissionFlagsBits 2 messages
lusty seal How to fix no exported member PermissionFlagsBits
Webhooks 2 messages
echo valve Do rate limits get abided when using the Discord.js library?
slashcommand make timeout with ram using higher 9 messages
robust geyser on my log console getting under ```ansi {"timeout":59719,"limit":2,"method":"put","path":"/applications/**...
How to use createInvite Method to create a unique invite for 1 person 9 messages
fair vigil I am trying to make a unique invite for one person only, here is my code ```js const guild_ = client.guilds.cache....
client.channels.cache.get or client.channels.fetch doesn't have send function 31 messages
tidal lake Available Channel Things: Attachment Code: ```ts import client from "../.."; import { Event } from "../../structures/li...
How can I add a button to an existing message? 4 messages
fading turret I’m learning d.js and I’m wondering what the eval command is to add a button to a existing message from the bot.
is it recommended that all embeds are placed in the index.js file? 2 messages
dusk violet and then i can just import them or whatever?
Bot issues 3 messages
toxic compass i am getting an arror and i dont see whats wrong please help 🙂
RPC Discontinued? 8 messages
inland verge The docs aren't on the website anymore, and the repo hasn't received updates in a few years now. Did something happen?
RPC
Creating Channel Error 25 messages
queen crescent Anyone able to help me with this by chance? On line `31` the bot will fail to perform: `await interaction.guild.channels...
Trying to send buttons with embed 3 messages
heady pilot DiscordAPIError[50035]: Invalid Form Body components[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (1,). ...
I can't assign roles using a bot 17 messages
orchid inlet Hi I've been trying to assign a role using guide's code, but it seems it's not working code: ```js client.on('interact...
DiscordAPIError[50035]: Invalid Form Body 4 messages
drowsy crescent Im trying to register a slash command and I get the error in the title.
Console Log DM's sent to a bot. 40 messages
leaden thunder Using; [email protected] and node v18.13.0. Intent's and Partials are set correctly. What I'm trying to do is console ...
Not finding a file 3 messages
silver sky Hi sorry for this but, I have been trying to fix this problem but can't really find it, so i have this code i tested on ...
Issue: The reply to this interaction has already been sent or deferred. 12 messages
minor wave Hi I have a pretty simple /command that says something in another channel. But I keep getting this error: Here is the c...
Bot slow on the same code 14 messages
misty steppe When i put the same code into the Development bot, it runs fast and good but when i change it to the main bot, it's slow...
Code issues 13 messages
toxic compass So I have just started today and gotten everything I've needed and started coding but one line won't work and I can't fi...
What are possible causes for "DiscordAPIError[10062]: Unknown interaction" 3 messages
exotic wharf Hello 👋 A user of my bot reported that they are getting the following error: ``` DiscordAPIError[10062]: Unknown inte...
TypeError: Cannot read properties of undefined (reading 'process') 34 messages
drowsy crescent When i launch my file it gives me this error and I dont know why.
Autocomplete select menus+ 9 messages
hardy jungle Is there any way to do autocomplete with a SelectMenu or other type of non-slash interaction? I'm trying to do a role s...
mass Kicking users 36 messages
mortal cloak Hey there, I am an admin on a large server that has unfortunately died, the server has around 1000 members but only arou...
case erroring? 5 messages
short aspen how do u stop the case from erroring ?