djs-questions

9202 threads · Page 164 of 185

Possible Bug In Validate Name 5 messages
rare wasp Hey, I'm trying to register a context menu command with the name "✅ Mark Solution" and encountering an error with the fo...
Changing waitGuildTime in Client Options 21 messages
fathom lion I have 2 guilds that were "soft deleted" by Discord and are unavailable and trigger the guildDelete event every time my ...
Any idea why this mardown doesen't render 7 messages
undone stream When I send this via webhook `[Click here](https://example.com)` it gets rendered correctly but when I send via discordj...
fetch video stream 1 messages
fathom cliff can i get a video stream? either to get a screenshot of what it is or the whole video stream, to then save to a file or ...
Embed Question 4 messages
gloomy flame I try to make leaderboard embed but i cant make some infos in fixed position and it changes depends the username the fir...
create channel from button 21 messages
wheat dirge **discord.js@14.7.1** Node **v18.13.0** I try to create a new channel from a button interaction. The channel should be ...
Getting undefined error 79 messages
fallen gulch I delete this specific file and I can run everything smoothly but when I add this file back I get undefined and I don't ...
question 5 messages
stone thunder Hello i want the items in database to be in a menu What should i use in .addOption https://sourceb.in/JIkmMrb1Ur
Bots custom emojis not working in some guilds? 4 messages
sonic pelican Well the title explains it all more or less, sometimes the loading icon works fine in the embed. other times it says \:l...
My messageUpdate event triggers on member join? 11 messages
mint zodiac https://i.imgur.com/5ciyzx5.png
Is there a way that i can pass values through interactions ahead? 17 messages
lament anvil Is there a way that i can pass values through interactions ahead? What i want is: First i send a embed with two button...
My bot collects messages through dms, which is not supposed to happen. This is what I have: 5 messages
floral flower ``` const mappedResponses = collected .map((msg) => { return ` ${msg.content}`; ...
Per server profile pictures 5 messages
stark flower Is it possible for a Discord.js bot to have different profile pictures in each server? If not, will it happen in a futur...
986538542350086175
GuildDelete Event Triggering Every Time Bot Starts. 1 messages
fathom lion I'm having strange behavior where my guildDelete event is being triggered every time I start my bot. The available stat...
bow do filtet cached members based on their presence 2 messages
upbeat shell so i tried to filter members based on their presence like ```js ${interaction.guild.members.cache.filter(m => m.presenc...
How would I make it so if you type cancel, it ends the collector? 4 messages
floral flower How would I make it so if you type cancel, it ends the collector? This is what I have: ``` if (m.author.bot) return; ...
Adding 2 numbers together 2 messages
vague storm I'm wondering how I will be able to add 2 numbers together. At the moment I just put something like 2 + 3 and it would r...
How to check if the user has the permission "manage posts" 4 messages
dawn thistle Hi, I would like to know how I can check if a user has the "ManagePosts" permission? Indeed, this permission doesn't se...
What is the most up to date way to create a multi-page response? Can this be done as an embed? 4 messages
hidden viper Everything im seeing seems to indicate that this is still done with emoji responses which edit the response body. Is the...
ephemeral 3 messages
weary adder If I put an interaction.deferReply({ephemeral: false}); is it possible for me to edit by adding the ephemeral?
Class function provided but returns `undefined` 3 messages
tidal lake ReadyEvent: https://sourceb.in/00w2jgb9Bu Event: https://sourceb.in/Ywi4nsk8Xn Client: https://sourceb.in/p5Q5s7CGlS Fu...
Anyone know how i would go about making a logger for "slashcommands" 3 messages
hybrid urchin All i want is, when a command is ran it logs it to a channel. Example: ``USER RAN /HELP`` or something like that.
Bot Stops Working After x Hours 15 messages
tribal perch After some time on the live server (doesn't appear to happen in dev), the bot throws out some errors which I can't seem ...
d.js not able to fetch message from channel. 9 messages
thorny warren For some reason i came upon this error while trying to fetch message from channel error: ```js (C:\Users\szalikdev\Docu...
GuildMemberAdd User object not providing createdAt 11 messages
formal whale I know I'm missing something that's probably incredibly simple, but I am blanking on what it is. Essentially on the eve...
RATELIMIT 5 messages
shrewd crypt hello everyone, does discord restrict me from texting everyone on the server? If it is limiting, do I have a chance to c...
Client.login not throwing error, but bot is not logging in 27 messages
magic path Hello, I'm having trouble diagnosing why my bot isn't logging in, even though I'm not receiving any errors in my code, o...
Property 'getString' does not exist on type Omit<CommandInteractionOptionResolver<CacheType> 8 messages
lucid cliff so I have this typescript function that is called when a user uses the slash command ```ts export async function trigger...
error npm i discord.js 20 messages
viscid parcel Hey ! I have try many things but i don't know what i can't install discord.js 14.7.1 with nodejs v16.19.0 and npm 8.19.3...
Dynamic event loader not working properly 7 messages
hazy willow This is my event loader: ```ts import { readdirSync } from "fs" import { fileURLToPath } from "url" import type { Clien...
why permissions.toJSON() returns a string 7 messages
young solstice as the title says.
How can I make it so that if a user has created a ticket he/she cannot create another one? 17 messages
vast hare How can I make it so that if a user has created a ticket he/she cannot create another one? Ticket Response: https://past...
I am trying to get role by an id 4 messages
sage schooner I am trying to get a role using role id: ```c++ // get the specified role let role = client.guilds.cache.get("97...
Too much event guildDelete 3 messages
marsh plaza Hello, I have a big problem with the GuildDelete event. I haven't changed anything in my code when this morning I discov...
I want to get the total number of members of the server in which my bot is participating. 3 messages
sly furnace I got the total number of members of the server (excluding bots) in which my bot is participating, but bots are still in...
How do I make this a message inside a discord channel to oauth inside the server 3 messages
trail basin Title says it all
I have: "TokenError: Invalid "code" in request" error. I don't know where it is. But I tested it and 5 messages
delicate coral Guys i am coding discord oauth authorization. But when i click the button authorizate everything works but there is an e...
Can't get the ID or name of a default Discord emoji? 7 messages
sly hornet I cant find any way to differentiate a default discord emoji reaction. I logged the info for a Default emoji and got: ``...
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...
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...