djs-questions

13317 threads · Page 177 of 267

djs on cpanel - How to? 6 messages
grave mulch Hello there. I'm trying to deploy a bot on cpanel. I've successfully installed nodejs and it runs, after that I've insta...
Discord is trolling me ! 49 messages
worldly plume Hi, I think i'm getting trolled by discord : I'd to reset my bot token, but after i've update it in the code, i'm gettin...
How to solve invalid form body 13 messages
junior widget ```DiscordAPIError[50035]: Invalid Form Body application_id[NUMBER_TYPE_COERCE]: Value "undefined" is not snowflake. ...
What can I fix in this code to make sure that the bot deletes a channel when giving the ID? 11 messages
atomic flare ```js client.on('messageCreate', msg => { let testChannel = client.channels.cache.get if (msg.content === `delete ${...
how to update new version fix zoombie connect 7 messages
halcyon thunder I see bug fixed, but i dont know use what version discordjs. Help… <#986520997006032896>
Invalid bitfield flag or number: GUILDS 18 messages
kind shore Invalid bitfield flag or number: GUILDS
Failed to register slash commands - ExpectedConstraintError: Invalid string format 10 messages
last ore When I run my command registry script I get this error: `ExpectedConstraintError: Invalid string format at Object.ru...
descriptionLocalizations are undefined 4 messages
glossy lake Hi, maybe someone can help me with my problem. So I want to get `descriptionLocalizations` from `client.application.com...
Bots banned by other bots 4 messages
tough sorrel Two of my bots: YAGPDB.xyz and security banned the other 4 bots that were apart of my server. I just found this out toda...
RPC
Trying to access a variable from multiple scripts 7 messages
pastel monolith Hi. Sorry if this is a bit of a noobie question. I've found many sources with different answers to what I want to do, bu...
Bot is responding to its own messages 9 messages
stone thunder If i want the message only that be sent in the channel without repeating a message In this code ```js client.on("messa...
Slash command not registered 42 messages
vital scarab I use code from discord js guide, but command not registered. Code: https://pastebin.com/MLS0AxEB
WS 5 messages
daring spoke Yo, I don't know how to handle events in @discordjs/ws
@discordjs package
i cant run my bot 4 messages
set the tags of a forum channel 5 messages
vague tendon how can I set the tags of a forum channel?
EmbedBuilder not working 9 messages
plain hamlet I have this command which should echo my message. It has an boolean argument to make it an embed. I choose true but it d...
client.commands 12 messages
pseudo lagoon The discord.js guide suggests creating a commands collection on the client object. From what I can tell this isn't stric...
Interaction reply after message 6 messages
bronze socket Hello guys, I have a question, how I can reply to interaction after message send by same interaction, that code not work...
Collection is not defined 16 messages
stuck tundra Hi all! As i went through the guide, if recieved the error message and dont really understand how to fix this. I did no...
error handling 25 messages
subtle citrus Hi all! As you know, if your bot has an errror it normally shuts down. Is there something like error handling? (Event or...
Where to put client.commands = new Collection(); 3 messages
plain hamlet Hi, I‘ve got a undefined error, because I forgot to define `client.commands = new Collection();`. But where should I in...
Vanity Roles 11 messages
void heath So i found this code but when i change my personal status, nothing happens. I tried logging `activities` and `newPresenc...
Correct console output(<ref *1> 4 messages
supple pier The `messages` variable outputs all messages from the channel ```json [ <ref *1> Message { channelId: 'id', gu...
Random integer only once random 6 messages
spring ermine Hey! I've been working on a "random shitpost sender" command, but when I try the command after each start of the bot, th...
How would I set as the params for the ActivityType.Custom? 4 messages
hollow night ```JavaScript await DiscordClient.user.setActivity('testing', { type: ActivityType.Custom, emoji: ':white_check_mark:',...
Unexpected Token '??=' 17 messages
kind shore I'm not sure how to fix this, can someone help me?
Get all messages in channel 5 messages
snow zealot I'm trying to get the content of posts from a specific channel by its ID, but the content is always empty even though th...
guild.commands is undefined 18 messages
acoustic saffron what is this error?
i cant install 3 messages
Markdown in discord.js 17 messages
void tendon hello
Banned for self-bot while using djs 10 messages
pseudo lagoon Hi, not sure if this is a good place to ask this, so if not please let me know and I'll delete the message any direction...
Undefined interaction.client.commands.get() 13 messages
Discord Rate Limit 18 messages
latent iron Quick question, hopefully - I'm looking to DM a bunch of members on my server that have a particular role if a particula...
RPC with 0Auth app 2 messages
marsh furnace Is it possible to change a users rich presense if they have authorized an application to change it through 0auth? I assu...
RPC
Updated to the new discord.js and now my bot won't start! 6 messages
slim peak Hi! I've been coding in 12.5.3 up till now (so you can really tell i've not been keeping up to date, lol). Today I final...
Default option instead of addStringOption? 2 messages
main latch I want to have a option the when selected automatically executes, another option if selected uses addStringOption. How c...
Slash commands not authorized 16 messages
vale valley I am trying to get my bot setup to use slash commands, but when I run my deploy-command file it gives me the error: `Di...
[14.7.1] How to delete message with ID, without fetching? 6 messages
tropic gull On discord API, I can delete message by `DELETE /channels/:channel_id/messages/:message_id`, without fetching message da...
how to reset the last selected option on the selectMenu? 3 messages
naive otter I use `i.update({ embeds: [embed], components: [selectMenu] })`, but this don't work
How do I get all the roles a member has? 3 messages
exotic summit I've been looking at google to figure out how to get all of the roles a member has since member doesn't have a roles att...
How do i mention a role? 24 messages
exotic summit ```js module.exports = { data: new SlashCommandBuilder() .setName('ping') .setDescription('Replies with Pong!'...
Collection Undefined? 39 messages
exotic summit ```js const fs = require("node:fs"); const path = require("node:path"); const { Client, Events, GatewayIntentBits } = re...
Checking vanity URL not working 36 messages
mild osprey ``` var vanity = guild.fetchVanityData().then(res => console.log(`Vanity URL: https://discord.gg/${res.code} with ${res....
Discord Linked Roles 6 messages
worthy gyro How can i use discord linked roles with discord js, and how it works?
Do not have permissions to use my own bot the second time 35 messages
graceful lodge just created my own slash + prefix cmd handler but there is a problem with the slash part after i use any one slash cmd ...
how do i get this from message 24 messages
narrow crypt users: Collection(1) [Map] { '813066969011322900' => [User] }
Accessing bot statistics or information through an external site 15 messages
lime chasm Heya, I'm building a web app for my bot, is there any way to fetch some statistics about it, like how many servers it is...
DisallowedIntents 5 messages
stuck tundra Hello everyone, just so you know about about myself, i´m a junior in computer science :). I´m trying to build my own dis...
Get all members that have a specific role 10 messages
pastel monolith Hi, I'm trying to add a list of users with a specific role to a text file, but everything I do doesn't seem to be workin...
no status 3 messages