djs-questions

13317 threads · Page 73 of 267

Unable to DM User despite open DMs 12 messages
heady sand code: ```ts try { let userData = client.users.cache.get(user.id); ...
Invalid Type? 6 messages
heady sand Hi, Im trying to map users from guild into a dropdown heres my code so far, ```ts const members = await interaction.gui...
Help with !play song command. 4 messages
prisma trout I am a begginer at bot development and I want my bot to play song in the voice channel I am rn without using ytdl-core. ...
node @discordjs package
Bot doesn't play any audio on a voice channel. 6 messages
node @discordjs package
MODULE_NOT_FOUND 10 messages
turbid hull Hello! I encountered a problem when trying to run my Discord.js bot. I don't know why I keep getting this error even th...
getting owner from id 4 messages
sleek crypt why is message.guild.members.cache.get('owner_id') returning undefined?
awaitMessageComponent not working on server but works locally... 19 messages
sacred dock So, I have the following code that has been running for months.... const collectorFilter = i => { ...
node
Not Work 42 messages
worn sorrel ```js module.exports = { name: 'add_client', description: 'Give client role to the member', options: [ ...
Images not loading in embed 34 messages
latent hill So if you are trying to setImage() a image from a discord chat, it will just not load it, but if you are trying to load ...
interaction.user.send() not working? 15 messages
heady sand The embed with Success happens and whole thing goes to plan but i.user doesnt get logged??? nor do i get dmed ```ts ...
Joining and leaving VCs fires off messageCreate event 38 messages
fast creek I'm working on a mod for discord.js with some quality of life changes and one of the things in it are custom event handl...
node @discordjs package
button 36 messages
faint creek i am trying to put a button and when i am adding style it tells me buttonstyle is not defined ( i am doing whats written...
Options missing from slash command. 29 messages
finite lark ```js const interaction = { interaction: { type: ApplicationCommandType.ChatInput, description: "some descript...
node
voicechannel audio 3 messages
sleek crypt how to retrieve audio from a discord voice channel
not switching on 15 messages
faint creek i am trying to upgrade my bot to v14 but it gives me this error everytime i try to switch it on i have updated the way i...
Users & Role select menu not clearing when it should 55 messages
wraith aurora I am not sure if this is a bug in discord.js discord it self or me missing something but this seems broken. I seem to b...
The type of a <Message>.awaitMessageComponent() filter 6 messages
autumn crane I am trying to use <Message>.awaitMessageComponent() in typescript, but I just can't figure out what the type of the fil...
Problem with discord.js on pterodactyl 7 messages
smoky coral Hello, Does anyone know how to fix this problem?
node @discordjs package dev release
Recieved 1 instruction to send a webhook but it send twice with different contents. 87 messages
sullen sky We have a system in place that sends instructions to the bot with webhook id and token. Upon recieving the instructions ...
node
how to remove embed color? 7 messages
outer ferry Hello to all, how to delete the color of an embed? Is there a specific color? Thank you. An example is:
I've been at this for hours. Invalid Channels? 8 messages
heady sand This is how im defining channels ```ts export let channels: { paidJob: discord.Channel | null | undefined; commissionJ...
Problem with AddFields 6 messages
How to edit the inital reply after ModalSubmitInteraction? 8 messages
lone walrus I am using Node v20.11.0 and discord.js v14.14.1. Initial reply: ```typescript const button = new ButtonBuilder() ...
node
problem with ChannelType.GuildText 8 messages
digital sinew when i type this command the console respond me: TypeError: ChannelType.GuildText is not a function ```const { Clien...
API for my discord bot 2 messages
cunning epoch Is there any easy way to implement an API on my d.js bot so whenever someone visits my website I can make a call from th...
Command Wont Go Away 5 messages
fathom cliff For some reason my command was listed twice in the command list. So I deleted the command from my bot, then restarted i...
Expected token to be set for this request, but none was present 38 messages
paper iron I started to use discordjs/rest for some of my stuff to have less api calls in my overall code. One of those being the f...
node @discordjs package
Nested Collector 15 messages
heady sand If i have a button that opens up a modal, do i add the modal collector in the button collector or is there another way? ...
Timezones inaccurate 15 messages
ocean falcon Hello! While designing a test bot from official discord.js guide and not changing a code I used /user which gives inform...
@discordjs package
problem with timestamp 3 messages
digital sinew when I type the command unmute the console reply DiscordAPIError[50035]: Invalid Form Body communication_disabled_until[...
bot invites unwanted members into private threads 10 messages
sage meadow hi, discord.js I programmed a function that emit a drop embed message (with button) in the channel that reached 100 mess...
Check for nitro 4 messages
sleek crypt how to check if user has nitro
Using a Discord bot from Nextjs Backend 5 messages
lament seal Is it possible to run a discord bot from the backend of a Nextjs application? If so.. any references/guides to help?
Creating-your-bot guide is quite confusing 14 messages
cunning epoch I'm at the commands handling / registering slash commands part of the guide. In the guide, at registering slash commands...
How to update style of a button? 25 messages
stark wave Hi, I'm trying to upgrade from v13 to v14. Given a message object, how can I update the style of a specific button?
node
command deploy stucked 6 messages
eternal peak Hello I was creating a Discord bot using https://github.com/OfficialDelta/TypeScript-Discord.js-v14-Template . It worked...
Never expiring button blocks another button 8 messages
deep jasper Hello 👋 I made a code so my buttons for a command never expire, but it seems to block other buttons from working. ```...
Slash Commands not showing 8 messages
spring quartz When I created my discord bot it was working good. But later I tried to add commands but it just didn't show up. The new...
Modal Id question 7 messages
dusky oyster Hey so Im just looking for some simple explanation on the custom id, so like, whats the job of it specifically, what doe...
Pre-fill message input with slash command on click button 18 messages
flint fiber the purpose of what im doing is to have a message send from my bot with button under, when a user click on a button the ...
Client as GuildMember 14 messages
burnt lynx Hello, this has probably been asked a million times, and I'm sorry for probably re-opening a topic. I tried my best to u...
node
How can i remove my bot from 20k+ servers 3 messages
winged jolt It is been a lot of servers since i created the bot so i just want to rip them off. There is 35 shards
@discordjs package
Need a help in Music command 5 messages
clear imp I have done with my music commands but the main problem is that the song is not playing. Full code : https://pastebin.c...
Returning bot's missing permissions 27 messages
winter minnow Hey, i made a function, which is supposed to check for the missing permissionsn in the array of permissions i give it. I...
Why isn't messageCreate getting triggered? 7 messages
fathom cliff ```js import { Client, GatewayIntentBits, Partials } from 'discord.js'; const client = new Client({ intents: [Gatew...
Permission Overwrites 10 messages
icy lotus Does the bot need administrator permission to set permission overwrites on a channel? It's only working for me if the bo...
How Can I Make File Attachment Option 3 messages
worn sorrel https://media.discordapp.net/attachments/1197096601987072000/1198442780394000534/image.png?ex=65beebd0&is=65ac76d0&hm=b8...
Cannot read properties of null when editing a automod rule 56 messages
plucky pawn ## Description When attempting to update an automod rule i get an error from discord.js that it can not read properties ...
node
how can i collect attachment like collect message 2 messages
Problem with Reddit API 10 messages
digital sinew When I run the /meme command, the console replies Unexpected token '<', "<!doctype "... is not a valid JSON (PS: I use ...