djs-questions

9202 threads · Page 177 of 185

Creating sub commands 3 messages
rough pasture I there a way to create subcommands when using this method to create commands? ```client.application.commands.create({ ...
Why its doesn't work? 19 messages
solemn rampart .clear is undefined, why?!
getSubcommand(); doesnt exist. 4 messages
copper heart Here here is the method i want to use: ```this.createSubCommand(ticketmoderator,async (interaction) => { if ...
Take an Embed or a Component from another file or folder 34 messages
uncut haven Hello, When I try to retrieve an embed or any other components from another folder/file, i.e. for example: ```js const h...
Are these sweepers related? 3 messages
nimble knot https://github.com/discordjs/discord.js/blob/main/packages/rest/src/lib/utils/constants.ts#L30 https://discordjs.guide/m...
Getting a list of members in a role? 5 messages
vestal plinth Hiya! So I'm currently trying to make a command that picks any member from a select role at random when the command /ran...
How can I load slash commands to work across DMS and all servers? 4 messages
warped umbra Currently I am just allow it in just one guild, would like to allow it on DMS and all servers
How is it possible to call a function from inside a function (Embeds) 16 messages
jagged wigeon I know that I can make an embed like this. ```js const embed = new Embed(); ``` I can also add fields by accessing the ...
Error 4 messages
warped umbra Error is below: ``` DiscordAPIError[50006]: Cannot send an empty message at SequentialHandler.runRequest (C:\Users\B...
Finding users who do interactions on another bot 4 messages
ashen lance I am trying to figure out how to find the user ID of the person who ran the command of a slash command from another bot,...
collectors 1 messages
covert socket Hello, I wanted to ask how I should use two events one on top of the other without the operation being executed twice. I...
Caches on startup 2 messages
light merlin My app is designed so that the bot and the website work separately and cannot communicate with each other directly. But ...
TypeError Intents is not a constructor 14 messages
past grove ```js const intents = new Intents(['GUILDS', 'GUILD_MESSAGES']); const client = new Client({ intents: intents }); ```
How can I get SlashCommand to wait for an image from an API and send the image within an embed? 18 messages
warped umbra I have a parameter from an API called imageURl. I want to wait till the API responses and then reply with the image taki...
Give role to member problem... 40 messages
wary belfry Well I want to create a select role system with select menus but I have a problem
Buttons 14 messages
dawn hatch Hi, I have this code here: distube.on("playSong", (queue, song) => { let embed = new Discord.MessageEmbed() .setTitle(...
event handler not working with the event guild create 6 messages
rich saffron I create a event handler following the discord.js guide but the event guild create is not activating well. Here I put my...
TS Error 15 messages
ebon iris I am using typescript and extending the `Client` class and adding a `config` property on it and creating a client with t...
Acknowledge both CommandInteraction and ModalSubmitInteraction with same message 8 messages
rapid dawn ```typescript public async chatInputRun(interaction: CommandInteraction) { await interaction.showModal(someModal); ...
Need help with permission 5 messages
mossy moth Good evening ! I have a problem I can't make a condition, I would like a person to be able to use certain commands if th...
How do I delete all messages in a channel, including those that are older than two weeks? 11 messages
brave lance I'm trying to delete all messages in a channel (usually only about a dozen messages), but the messages are older than tw...
SlashCommandBuilder is not defined 14 messages
sleek vortex Uncaught ReferenceError ReferenceError: SlashCommandBuilder is not defined at <anonymous> (c:\Users\Socio\Desktop\Ce...
find user, in the cache or not ? 6 messages
oak ether Hello ! I'm doing a lot of commands that are fetching for a target user and I'm using atm these functions : -``client.u...
Pass more than one guild ID 8 messages
autumn kestrel Can I pass more than one guild ID in here `Routes.applicationGuildCommands(clientId, guildId),`
Do something in specific time 16 messages
autumn kestrel How to send like a happy new year message exactly at 00:00
Import json to use in addChoices() in string option 6 messages
worldly mulch //Hey gotta a question, I actually want to get datas from my json db file when I use my slash function /removemember in ...
Can't deploy slash commands! 40 messages
gentle vector I can't deploy my slash commands, its just doesn't give any error, i dont get it
Infinite Handler 4 messages
fiery creek Hi! I'm trying to make an infinite handler that takes infinite subfolders. How do I do that?
Where is discordjs rest docs 3 messages
hexed stirrup Where is discordjs/rest docs? I don't see it on discord.js.org, neither is it on the GitHub README.
998292157150535700
SlashCommandsBuilder Error 5 messages
runic kiln C:\Users\zsl8\OneDrive\Desktop\Hello world 👋\node_modules\@sapphire\shapeshift\dist\index.js:1672 return typeof val...
Can you get more interaction info from the ButtonInteraction object? 22 messages
quaint loom So basically, what I mean is I'm creating a command that will allow users to retrieve an image based on a selected categ...
Autorole with rules screening ? 50 messages
uncut haven I would like to know if it is possible to add a role when a member clicks on "I accept the rules" thanks to the native f...
I have a problem with creating a media only channel 28 messages
wary belfry Well basiclly I want to create a channel which remove any type of message except any type of videos and images
I have a problem with the refreshing application commands v14.7.1 4 messages
dusty sapphire I'm tryng to do a refreshing application commands but when I run the script it says the error of the screenshot
get all messages in a channel after a specific date 15 messages
worthy topaz Hello! I have been trying to do as the title says, however I cannot find a good way to do it, as the usual way of gettin...
Messages not being detected at all 5 messages
noble bane I recently came back from older versions of discord.js after about a year of not working with it at all and I managed to...
Do we have documention for testing discordjs? 5 messages
craggy vector This a general post to ask for a documentation and how to setup for testing in discord js in official docs. Any particul...
Hey, is discordjs is working with typescript? or do i need to compile the application first? 8 messages
feral jolt Hey, is discordjs is working with typescript? or do i need to compile the application first?
setImage() loading inconsistently 6 messages
celest sand I'm passing an external url to `setImage()`, on specific urls sometimes the image doesn't resolve and display in the emb...
issue with lockdown command 2 messages
torpid holly ```js let data = await db.findOne({ guild: message.guild.id }).catch(err => { }) if(data.lockdown === true) { message.ch...
RequestAbortedError when trying to run the bot 6 messages
autumn kestrel ``` /Users/liv/Documents/Projects/yash-da-bot/node_modules/undici/lib/api/abort-signal.js:10 self.onError(new Reques...
DiscordAPIError Unknown Interaction 10 messages
sleek saddle Error: ``` [ERROR] Encountered error on chat input command "leaderboard" at path "/insert/path/here/commands/leaderboard...
Question about rate limit when DMing users 3 messages
sullen cosmos In my server, some users will have a role that will automatically removed by the bot after 30 days, I want to DM the rel...
why client.user.serPrecence no work? 10 messages
shrewd hinge ```js client.user.setPresence({ activities: [{ name:'test',type:'WATCHING'}] }); ```
nestjs discord.js serverless 3 messages
timber pelican i'm using nestjs with discord.js can i use with serverless
rate limit question 4 messages
urban vale How much time adding a role to 160k users would take? Rate limit wise
Not able to get the reason for error and fix it 2 messages
red coyote https://pastebin.com/dGv0JwFS This is the link to the error and the command js file. I am not able to understand why am ...
How to write on behalf of a bot 21 messages
warped imp Hi all, who can tell me. How to write on behalf of the bot in the text chat? For example: /setmsg Happy New Year! Bot: H...
Is there an event for when a user accepts a community gateway. 5 messages
hollow night Is there an event that can be passed to my client when a user accepts a community guild gate, I have browsed through the...
guildManager.fetch() 7 messages
summer blade What's permission he's talking about? I do it on a prod bot and it's work, and same code in test bot on a test server an...