djs-questions

9202 threads · Page 175 of 185

Create a role with view permissions for a channel 14 messages
dusk knot Hello, I want to create a role with viewing permission for a channel, how can i achieve this? i read the documentation f...
Is this a stupid way to await interactions on a message? Is there a better way to do it? 24 messages
jagged grotto ```js // call this to send a message with buttons const awaitInteraction = async (interaction, buttonArray, messageObjec...
message embed doesn't display Hindi characters properly 8 messages
warm bay Hi, I recently discovered a weird thing that my lyrics embed for a song in Hindi is displayed properly to a point in the...
message.client 3 messages
mellow zephyr Is this a reference to the bot client or the author of the message? If it's the bot what's the purpose?
Is there a builder for user or message application commands? 3 messages
vagrant nymph Like how SlashCommandBuilder exists for text input application commands
HTTPERROR [FetchError] 21 messages
analog mango After running the bot for a while, it stops working and if I try to use a command again I would get HTTPERROR ``` HTTPE...
Problems with moving everyone in a voice channel to another one 380 messages
paper talon I'm making a bot with a slash command that moves everyone in a voice channel to another one, and for some reason it work...
Discordbot.js (sockets and bridge) 31 messages
woeful plover I'm creating a bot to communicate between discord and a game made in C++. The "bridge" is created and working... But I'm...
Having issues with Intents in ping-pong example code 14 messages
spark pilot Hi, all! I am updating a bot to work with slash commands using another library (`discord-interactions`), but I still w...
Is there a list of all the end reasons for when a collector ends. 12 messages
silver mesa The title is pretty self explanatory. I can't find anything on the docs that tell me what all the possible end reasons a...
How do I get the current guild id in a client ready event? 10 messages
olive phoenix I figured it would be client.guild.id but that's undefined. Is there a different way, or can I not access guild in Clien...
How can I get the server ID a invite links to? 11 messages
remote crypt Title basically.
Anyone know how to do this? 5 messages
humble narwhal I made some base code for streaming, but it does not show up as Streaming as activity. Code below: ```client.once(Eve...
Poll =) Allow only one reaction per member 15 messages
severe nimbus Hello, I am creating a poll order and I would like members to be able to put only a reaction. Is it possible ?
Auto Send an embed every hour 59 messages
red coyote What i want to achieve is that as soon as the bot logs in it will start sending an embed every hour or two hours, but i ...
Channel naming 6 messages
sick pendant Hello! I'm working on a ticket system that creates a channel, and uses `user.tag` as part of the channel name. Is there ...
Discord commando 9 messages
signal hedge Hello, as I don't really know too much how to use discord.js v14 (to be exactly **slash commands**) can I use discord.js...
998292157150535700
Creating channels with permissions 7 messages
untold slate I want to create a channel, sync permissions to its category and then apply some overrides on top of those category perm...
When I delete a role, the roleUpdate event is triggered and it causes problems. Is it possible to pr 22 messages
odd anchor I added a limit system to my protection bot and when more than 5 actions are applied, it imposes a penalty on the user a...
TypeError Cannot read properties of undefined (reading 'cache') 7 messages
south surge I'm trying to make a user info command that returns the user's roles, however I seem to be running into that error when ...
create channel with dm message 5 messages
ionic sage Hello, I'm trying to create a channel on a discord from a dm send to the bot, I tried the syntax: ```js message.guild.ch...
button cooldown 11 messages
quartz venture how would i make a cooldown on a button? I found something on google, but it looks like it's a cooldown for all buttons,...
basics 1 messages
toxic palm guys i am new to js can you just help with his small thing this is the code on top just like ping pong as you can see r...
The user aborted a request. At Client.login. 77 messages
odd palm At some point after Dec 27, 1:30 PM (PST), my bot stopped running. I started it up manually (after making sure everythin...
Missing permissions error even though permissions are valid. 29 messages
leaden iris Whenever I try to moderate a user (ban, kick, timeout, etc.), I receive a "Missing Permissions" error. However, the bot ...
Select menu default selection 12 messages
vagrant canyon Do anyone know if it is possible to refresh the selection menu or not to save it, so that when the user select an item f...
Is there any way to make own Connection ( I mean those connection type like Epic Games, Steam..)? 2 messages
sullen raptor Hello, is there any way to make a custom connection within Discord.js? So it would appear similary as those social accou...
how can i check that a member is nitro boosting? 1 messages
gusty bramble how do i check if a member is nitro boosting the guild that the bot is in? is it still `premiumSince`? as discord now ha...
client is not defined 5 messages
mortal shard client.on(Events.InteractionCreate, async interaction => { ^ ReferenceError: client is not defined
how do I tell the bot that it needs to delete its last message sent 5 messages
dawn hatch Hi, how do I tell the bot that it needs to delete its last message sent
how i create a bot who check the status of a another bot 5 messages
silk scarab ?
Removing roles, then adding new ones re-adds the roles that were removed 6 messages
upper moat I'm currently making an endpoint for one of my projects, and I need to remove roles, then add new ones, however when I a...
I want to make a code which allow the user to write a command like this !speedwagon message. 5 messages
slim mural I want to make a code which allow the user to write a command like this "!speedwagon message". Whenever the user do thi...
Basics 2 messages
toxic palm idk what is wrong with code but bot isn't coming online
Basic syntax error 2 messages
toxic palm can anyone help with what i have to change and where
message.content returning empty quotes 4 messages
obtuse cloak I am quite new to discord.js, but am experiencing an error that I haven't seen anywhere online. I decided to update my n...
Never seen this error, and i need help knowing what it means. 10 messages
humble narwhal "Missing access" for the auto reaction. I have given it all the needed scopes, and was asking if it was my dodgy coding ...
i have error for install discord.js 25 messages
neat oasis i have a error for npm install discord.js please help me to fix
998292157150535700
How to know if a slash command is executed in a thread|post or in a channel ? 9 messages
dawn thistle Hi, I don't understand how to check if the ChatInputInteraction was executed on a channel or a thread since there is no ...
Delete voice channel when leave 10 messages
elfin star Hello, here is my problem. On my discord bot I would like to be able to create a voice channel when I join another (it w...
guildMemberUpdate only firing on 2nd event 7 messages
coarse sigil So I have subscribed to the `guildMemberUpdate` event, but it is not being called the first time I assign a role to some...
slash command doesn't work 21 messages
crimson oak so, i maked a command called "meme" and when i run the bot i try /meme but it doesn't read that there is a slash comman...
Bot off 4 messages
silk scarab how i make to bot send message in channel when he is offline?
Error when including the max parameter in my MessageCollectionOptions 5 messages
uneven meteor I am unsure what I’m doing wrong here, could really use some help. Thank you ahead of time! d.js@latest
Bot's token resetting 11 messages
pastel pollen Discord has started resetting my bot's token because 'it's connecting to Discord 1000+ times in a short period'. The bot...
format the avatar url 2 messages
cedar nebula message.member.user.displayAvatarURL({ format: "png" }) still it is coming in webp
How to get message boxed like these? 23 messages
rugged jackal What is the name of this type of message boxes and is it supported by djs?
Does Discord.JS support the new linked roles? 2 messages
proper bramble I was hoping to listen to the a link-creation and link-update event but I am not aware of if this is possible.
Client.on(guildMemberUpdate) - Check who added the role 4 messages
coarse sigil Is there a way to check if a user or a bot added a role to a user? I want staff to be unable to self-assign certain role...
What are the games in the discord api? I'd like to know how it works, I'm new so I dont get it atall 2 messages
dim spruce Like an example, information, a youtube video or something