discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

Cron Job doing what it wants

I used cron job several times and I googled how to correctly use it, but my command here executes in different times whenever it feels like doing so. The picture shows the code that triggers it For the past 10 weeks, it triggered on a Sunday at 22:54, Monday 20:32, Thursday 17:56 and so on (not at the time I want it to trigger) Today it triggered on a Tuesday at 18:00 which is the time I put in. I want it to run without problems, anything you know of?...
No description

Could someone help me with a problem I’m getting

I run my bot from my pc using npm index.js or node index. Js cannot remember of the top Of my head and when I run it it says my command has no name or function when it does...

Can't get this to work Interaction failed discord.js

I've been coding a discord ticket bot that opens a private channel with a user after they've opened a ticket, I've also added an advanced setup system that works just fine. However I'm not able to figure out why the bot is not creating a ticket after clicking on the Create Ticket button (Video showcase below). I've spent hours trying to figure out but I couldn't fix anything. Please help. Heres the code: https://github.com/ScremerMemer/Advanced-Ticket-Bot Video: https://www.youtube.com/watch?v=_6ZS_IC780c&ab_channel=Saket...

djs v14.16.3 - unknown interaction

so ive got this weird problem, when i'm developing the bot local everything works fine, but when i deploy it to my server to host the bot, i get unknown interaction errors for every command, button, select.

djs 14.16.3 - voiceStateUpdate - what do "sessionId" changes mean?

Hello, I have asked this in #djs-help-v14 before and someone replied, but never got an actual answer. I've got pretty much all voicestateupdate events coded; join, leave, switch, mute, deaf etc etc etc with an else { } to console log if something else happens, and it did. ...

Making a bot - COMPLETELY new

have no idea where to start, i have a chatbase bot that works on chatbase (an ai website thingy) and i want to link a discord bot so you can talk between discord and the website

Cannot run node.js

Below is the error I’m getting when running node index.js “node:internal/modules/cjs/loader:1252 throw err; ^...
No description

Interaction has already been acknowledged

Hi, I am making a Discord bot which utilizes interactions and message ids. Basically, whenever a message id is supplied into a command, it should currently reply back with the name of the channel which the command was run in. However, if the id is invalid, it should reply back with an error message. Unfortunately so, the bot does reply with the channel name everytime the command is ran (regardless of the validity of the message id), and if the message id was invalid it just throws an error into the console, which goes as follows: ```js...

Following a tutorial from 2020 and unsure of how I'm supposed to define Intents.

I'm following this tutorial by Sethey17 to make a simple Discord bot for my server that would be able to bulk delete messages in response to a command. https://www.youtube.com/watch?v=fx6oJ4PQDOs I'm on step two and I keep getting the following error when I try to run the code in the terminal. I've checked the code for typos and used JSHint. ...

Discord.JS First Slash command guide not working

when I use the /ping command I get "The Application did not respond in time": I have deployed the deploy-commands.ts code and it ran successfully. Here is my code for my ping.ts command: const { SlashCommandBuilder } = require('discord.js');...
No description

Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'

if(untypedLog.action !== AuditLogEvent.SoundboardSoundCreate) return; // Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'.
if(untypedLog.action !== AuditLogEvent.SoundboardSoundCreate) return; // Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'.
any ideas?...

No response from node?

it just seems to terminate and end
No description

Limits of Slash Commands

I was looking to Nekotina bot and I saw this bot has so many commands, even I think it reaches the limits of the slash Commands creation mentioned on the official discord docs, so I've been wondering if it's possible to bypass these limitations, like Nekotina does.

bug

Server Template says i have a template- but I don't.
No description

select menu

My interaction handler isnt working, giving the roles works but when I click the remove roles option to well obviously remove the roles it just says there was an error updating my roles and sends this into the console: ```DiscordAPIError[50035]: Invalid Form Body role_id[NUMBER_TYPE_COERCE]: Value "all" is not snowflake. at handleErrors (C:\Users\alexe\AGU Bot\node_modules@discordjs\rest\dist\index.js:727:13)...

Bot crashing after string gives role

My bot crashes when a user tries to select a role from my string menu options. It gives the roles then crashes, if they choose remove roles it just crashes. Anything would be appreciated:

javascript vs typescript

Which one is best for discord bots? Javascript or typescript...

Mentioning commands that have subcommands.

I have a question regarding how to properly mention commands that have subcommands in a bot. For example, I have a /status command, with the subcommands /status bot and /status api. While I understand that this is a Discord-related issue, I am trying to implement this functionality in my bot. I have structured the commands in an array, with each command being an object....

how to use @silent (flag 4096) on a deferred interaction reply?

Heya, I'm trying to make a silent message that has to be deferred (because it takes longer to finish). I am using the "flags: [ 4096 ]" approach, I'm not aware of any others. When I just reply to the message, the silent flag is used, but when I use deferReply() - also tried to push { flags } options into it, same results - it doesn't process the flag and the following message (even if it's containing the flag as well) also fails to apply. Any ideas about what could I do to? [email protected]...