discord.js - Imagine a 👻

DIA

discord.js - Imagine a 👻

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

Responding to interaction with a video from a URL

Hi, I have a database of videos that are all stored as links (all on the discord CDN and ending in .mp4). I want to respond to a ChatInputCommandInteraction with a video. At the moment I'm doing await i.reply({files: [new Attachment({url: row.content})]}), but that re-uploads the video to the Discord CDN rather than just showing it from the URL, which makes it slower. With images I know you can just provide a url and not have to reupload it, I assume this is possible with videos too? And also Attachment's constructor is private so its not ideal. ...

djs14 question

is it possible to create a command to set up a 'bot-logs' channel, for every server the bot is in? that way if the bot gets updated the dev can send the updates to the servers bot log channel?

Reply failing on button interaction, getting no errors

Just not sure what I did wrong here. Looks fine according to the discord API guide as far as I can tell. When I hit the yes button, I get an error in discord that says "This interaction failed."...

logic building question (flow chart included):

First of all, thank you so much for all of the help you guys have given me over the past couple days as I'm building this bot. New to discord.js and you have helped to make it a really fun and engaging experience to learn! I have a working embed, and I've done research into the discord.js to figure out if this was possible I think I've found a way to do what I want, but I wanted to know if this was a feasible way to get what I'm trying to do set up, or if there's another way I should go about it. ...

Icon in embed .addFields msg

How I may input this teeny-weeny icon to value in .addField in my embed msg. For example I have something like this: .addFields({ name: 'Account:', value: You have [here I want input my icon] }); Is it possible in djs v.13 ?...

Not sure why my embed is failing.

Hello! I have an embed that I'm putting together and I'm getting a TypeError that I'm not quite sure I understand. Could someone help me understand what the error is trying to say? ```TypeError: (intermediate value).setTitle(...).setDescription(...).setColor(...).setThumbnail(...).setTimestamp(...).addComponents is not a function at Object.execute (C:\Users\Owner\Desktop\BartleBot\src\commands\tools\quiz.js:31:8) at Object.execute (C:\Users\Owner\Desktop\BartleBot\src\events\client\interactionCreate.js:12:27)...

I wanna get embed data

When I click "Onayla" Button bot send message embeds description this channel. Can I do it?

How to completely removing an emoji, not just the reactions

In my app, the bot automatically adds different emoji reactions when a user creates a message. Afte a certain amount of time, I want that emoji removed. Not just the reactions, but the entire emoji. So far, I've only been able to figure out how to remove the reactions, which result in the default reaction count of 1, but the emoji is still there. Is there a way to remove the emoji entirely? Thanks all

DiscordAPIError[10062]: Unknown interaction

hii my bot was working very well at morning but now its give me this error for everything i use any help 🤍...

Does anyone know this "ENOTFOUND" error?

I think it's an error in a call discordjs made, and not a result of a function I called. I'm using djs 14.6.0 and node 16.13.2, so it might have been fixed in the meantime, but I'm not really sure where it originated in the first place.

waiting for interaction collector to finish before executing another function

code: ``js await interaction.reply({ ephemeral: false, embeds: [embed], components: [row] }).catch(e => console.log(e)); let filter = i => [next, exit`].includes(i.customId);...

interaction.channel = null

Sometimes interaction.channel = null. This is often fixed by restarting the bot. But I don't want to restart the bot every 24 hours. It's a command interaction that was executed in a guild. The bot is in this guild and the guild is cached. ```js // It returned "true" anyways...

To invoke a command from another channel

I don't understand if I find docs. How do I call a command from another channel?...

Need help sending an echo to a channel without it being a reply to a slash command.

The title says it all. I want the reply to be sent as an ephemeral message to the user in the channel they performed the slash command, and I want the message to echo into another text channel. ...

question about threads

is there a way to edit tags of a thread using a command?

Server Guide

Do discordjs have any options or anything with server guide? And also with onboarding

Unable to collect reactions

Hey guys, I could use some help with an issue I'm seeing using discord.js 🙂 I'm trying to register when a user reacts to a message that my bot sends out. I have ```js...

Is there a way to hide this part of the slash command

The part which reports which user used the command

cache expires?

Hi i have a feature in my bot that runs in a interval every 30min. Its something like that: guild.roles.cache.get(....).memberCount But i noticed, that always after ~2 days the role and memberCount becomes null....