discord.js - Imagine an app

DIA

discord.js - Imagine an app

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

Join

djs-questions

djs-voice

Is it possible to get a container or button in container from an already sent message?

I'm making a ticket bot, and I have a manage_tickets command that toggles ticket creation by disabling/enabling the button that opens the ticket. I decided to switch from embeds to containers, and now I can't figure out how to get container or a button from message

Mature code suddenly silently failing to execute?

Hey guys, I have code that has run reliably for the last 4+ months with zero issue. In the last 24-ish hours I've had issues with several /command scripts stalling at random places without throwing errors in the try/catch blocks. Has something changed on the DJS or Discord end that would cause these issues?...

I NEED HELP

I was wondering is it possible for a discord bot to have guild specific profile as in different avatar , bio , banner for different guilds and no im not talking about webhooks or using different bot instances

changing bot profile per server

is it possible to change a discord bot profile picture with the api?

Discordjs has types for typescripts devs?

Hey there! So, i'm developing a discord bot and i was expecting to use typescript for the development but when i go check for the types on discordjs docs, it doesn't appear to have any types to cast on some properties or vars like Client or client.commands. :crySparkle: My humble question is if there is some way to use typescript for the development and if there is some docs or tutorial for the type casting in discordjs lib i've not seen....

is there anyway to add status like this?

is there anyway to add status like this?
No description

client.fetchInvite() returns 'Unknown Invite' for valid friend invite links

Hello, I'm using client.fetchInvite() and passing the friend request code to it. However, when I execute it, I get an "Unknown Invite" error. Although when I make the request in a browser or send the link in Discord, it's clear that the link is valid. What could this be related to?...
No description

Working with the components in Modals

I’ve gone through everything now, and I’m still not really sure. Discord has now brought components to modals as well, like Selects, etc. However, I can’t really find any code examples or how to properly implement them. I’ve sent an example above showing how it currently looks for me. Now I want to add Selects too, but I’m not sure how to do it. ```js...

Internal Bot Checking Music Bot Activity

Hey everyone, I have an internal bot that needs to check if a music bot is actually playing music in a voice channel. Discord doesn't provide audio events for bots, so I'm not sure if this is even possible....

Hosting a discord bot on Bisect hosting and have an error

I’m very fresh and new to coding and just doing things in general. I’m having an issue with one code and was hoping I could get some help.
No description

Renewing Embedded Discord Links

I'm currently trying to archive all my own posts, which includes downloading all their embedded files and attachments. I fetch all the channel messages and from what I've done it seems like direct attachments do work; but embeds like a copy/pasted cdn.discordapp.com/attachments/.../.../file.jpg file will not renew. More specifically a link like https://media.discordapp.net/attachments/987627219973210124/1127972112628453449/snapchat.gif which is from the gif selector does show up in my client, but not to my bot because it lacks the signature queries. Is there a way to get them to renew so they can be downloaded?...

SlashCommandBuilder.setName() is failing regex when input is a string

For some reason setName() is saying my command name is failing the regex check for a string when I have it set as a string.
No description

Calling an API inside of module.exports

I am trying to make an api call inside a module.exports and keep on getting a unknown insteraction error see screenshot below. Is it not possible to call api inside of the code here since discord.js thinks it is discord call?
No description

Discord member notification bot

Anyone knows how to program discord bot that notify me when a new member joins a random server ?

Default of integration types of an application command

I'm currently working on my bot updating all application commands when started, if modified (using equals() of the "ApplicationCommand" class). Doing so, I ran into the problem, that every application command is updated every single time I start the bot. Some debugging and research later, I've come to the conclusion, that the integration types of the registered command and the locally saved command are not equal. In the documentation provided by Discord on application commands it says, that integration_type defaults to the app's "configured contexts". As I understand, this refers to client.application.integrationTypesConfig. I enabled both "GUILD INSTALL" and "USER INSTALL" for my bot on the Discord developer website, so this looks like this: ```json { 0: {...

Question about containers

I have a game bot that uses a large amount of interaction.update() calls to update embed content. Would it be more resource-intensive for the bot to use Containers, or would the performance be similar?

new modal items

is it possible to do the new modals stuff yet or is it pending a update? only asking as i'm not seeing info on it and wanted to make sure i didn't miss anything
No description

discord.js guide website update

why the website has been updated to new

New update Modal Components

after new update for Modals how can i use modal with select menu?...