djs-questions

9202 threads · Page 157 of 185

Detect bot's inviter 3 messages
balmy flame Is there any way to find the user that invited the bot when it's added to a guild?
Mass Unmute command 7 messages
celest sentinel I'm looking for a command in which where a member is muted by a bot(Gear or Dyno Bot) and I would like to unmute them wi...
Which operations require guildMember.manageable or moderatable? 4 messages
serene walrus I'm looking at the docs here but I don't know which operations I need to check if `manageable` or `moderatable` for http...
How can I create a slash command builder without creating a commands directory? 36 messages
noble sphinx I tried to create a slash command builder but don't know how. I saw that example from documentation but I really don't ...
Discord Gateway - Multiple Connections simultaneously 2 messages
pine canyon Hello, is it fine to open up several websocket connections from the same bot? Are there any side effects I have to take ...
Emojis not working in the bot 5 messages
vivid forge hi in my some commands i have added the option of emoji in the bot response so when i run the command the response the c...
Lineup messages 5 messages
glad venture How to line up these messages?
When are guild members not cached? 7 messages
serene walrus How do you know when you need to use `guild.members.fetch` instead of just going to the cache directly?
Bot not welcoming new members 5 messages
crisp valley I have this code in index.js yet when a member joins the server the bot stays dormant. help would be appreciated! the c...
How can I access my bot's slashcommands ID's to reference in a message like: </name:id> 4 messages
manic tundra I want to return a reply with a reference to another command but I don't know where I can get the command ID from. The c...
Bot ignoring messages sent in stage channel 11 messages
gaunt python I'm having an issue where the bot is ignoring messages sent in stage channels. Messages sent in other channels are handl...
How can I make slash command NSFW? 2 messages
dawn zephyr I used `.setNSFW` but It didn't work
Mongo Bd 2 messages
random sonnet I need help with Mongo bd
Problem with deploy-commands.ts 2 messages
cosmic nexus i'm having this error: ```sh "C:\Program Files\nodejs\node.exe" deploy-commands.ts C:\Users\danyf\WebstormProjects\bivix...
How to pass along data for multiple interactions (select menu > select menu > select menu > modal) 5 messages
hearty stream I'm trying to figure out how to chain multiple select menus to filter down options and end the process with a modal, the...
collector.on('collect') does not collect my input although I have content 13 messages
lilac anvil I have this messageCreate event and I want it to log the whatever key I press . It does log the content of my input when...
Error with permissions when running the bot 8 messages
candid sable im using discord.js version 13.6.0. node: v19.3.0 I get the following error when i run the bot. https://pastebin.com/bZk...
How to make Custom Canvas in DJS v14 3 messages
daring cave So question: how do I make a custom canvas with custom fonts, background, images, etc.? P.S. I’m not wanting to copy t...
my bot randomly got this slash command 38 messages
hollow mortar My bot randomly got this slash command for active dev badge i didn’t code or add it how should I remove this?
can't get avatar per server with user.ID 30 messages
topaz kraken Hi guys, so there is my problem, I have an avatar command that displays avatar per server & default avatar, this actuall...
Bot Disconnects From Discord 18 messages
warm snow Hey Guys 🙋‍♂️ I am currently experiencing that my bot randomly disconnects from Discord (Offline and not responding) bu...
I'm trying to get the bot to join the vc that I'm in 10 messages
crisp valley there is an error that says: ReferenceError: channel is not defined, and I'm trying to figure out how to fix that. the...
Event when the bot is kicked from the server 3 messages
warped aspen Hello, what would be the event when the discord bot is kicked out of the server?
Need Help 2 messages
prime arrow i need help pls, send dm
get users banner icon 3 messages
silk dagger is there a way you can get a users banner picture or like their banner colour
Tags in Webhook forum post 3 messages
chilly wing How can i add a tag to a post created by a webhook ? I tried to use the `appliedTags` parameter but it didn't work... I...
is it possible to automatically "purge" a channel using a bot? 2 messages
dusky hinge I want to purge a channel if it's corresponding voice channel doesn't have any users on it and it's text channel hasn't ...
Webhook not creating/sending 112 messages
paper iron So I have a daily message system that creates a webhook if there is none or sends a embed message if the webhook exists....
nats.js web-streams-polyfill interferes with sending attachments 3 messages
cyan prawn I've recently updated nats to 2.8.0 where they introduced web-streams-polyfill as a dependency. The package is set to gl...
998292157150535700
State Management 2 messages
rancid pumice Not discordjs specific question, but what's the preferred way to handle simple in-memory state for a discord bot. For e...
Error in discord.js/ws 25 messages
barren kraken Hey guys! I'm using the discordjs/ws separately for an own library, and I have this error when connects to the bot
Sweeping guild member cache 6 messages
spice ginkgo If I set the sweepers as below, what will it do? - sweep all guild members of a guild? - sweep only inactive/unused mem...
if (this.deferred || this.replied) throw new Error('INTERACTION_ALREADY_REPLIED'); 26 messages
wary hill hello, I need help when I do the /search command the following error appears:
no such file or directory, scandir 15 messages
tawny vapor Keep running into this error but if you look at the picture you can see the folder
discord.js error codes 6 messages
visual widget is there any docs about all the error codes so i can handle them my way? ```js const errorCodes = [ 50013 /*Missing Pe...
Select menu reply 15 messages
cinder wraith Hi, I have an error which I do not know how to fix the first time I have such a thing, could someone help?
help for "One-time button" 30 messages
civic plume I have a button script, after pressing it will reply a thing, and I want to let the original message (which sent the bu...
Bot crashes if there's an interaction before it refreshes / commands 57 messages
frosty mulch When my bot is trying to start up, if an interaction happens before it ~~reloads global commands~~ logs in, it will fini...
are slash commands registered on bot install? 5 messages
hoary owl im confused with the flow. https://discordjs.guide/creating-your-bot/command-deployment.html#command-registration I've ...
json help 8 messages
little canopy hello, i have a json array that looks like this (see attachment), how can i use discord.js to get the imageUrl?
Interaction already awknoledged 4 messages
west iron code: ```case 'remove': const name = interaction.options.getString('name') const deleteS...
Help me pls 2 messages
opal owl I don't understand the error and how to fix it. " Cannot read properties of undefined (reading 'id') "
Hello Error 5 messages
silent plover Error
Commands and status do not work. Doesn't output anything to the console. 6 messages
white nacelle I can not understand what the problem is, I checked the code, but did not find anything.
Select Menu Default Option 7 messages
plucky relic Is there a way to add a default selected option to a SelectMenu?
Error: {"message":"401: Unauthorized","code":0} 3 messages
proven wyvern Used an example from the official discord website. What could be the problem? https://github.com/discord/discord-example...
COMPONENT_LAYOUT_WIDTH_EXCEEDED 7 messages
plucky relic I try to do a StringSelectMenuBuilder within the same ActionRowBuilder as a ButtonBuilder, but it says: COMPONENT_LAYOUT...
Discord.JS ShardingManager and Fastify 5 messages
fathom hawk One of my Discord applications is growing at a good rate and it's getting to a point where I'm going to need to start me...
author id 6 messages
snow shuttle how can i get author id 🙂
Interaction has already been acknowledged. 17 messages
modern merlin hello everyone i got this error