djs-questions

13317 threads · Page 147 of 267

1[APPLICATION_COMMANDS_DUPLICATE_NAME]: Application command names must be unique 4 messages
rain dock I am trying to add quote function to my discord bot. But when i run it, I get this error quote.js: ```const { EmbedBuild...
Issue with Message Collector not hitting max or time 19 messages
tender kindle Does anyone know why my message collector wouldn't hit any of these 'options'?
How to properly collect a discord button message and alter the embed 8 messages
tepid wadi Basically, my goal is to create a menu. I want to be able to go through a set of embeds (which are edited onto the same ...
How are others scaling up with Discord.js? 3 messages
near peak Is anyone out there using Discord.js successfully for a bot with 35+ shards? If so, did you have to change any settings ...
What happens when a bot reaches sharding threshold? 9 messages
snow anchor Wondering about the mechanics. Will the bot reject new joins? Will errors be thrown? If it’s already sharding capable...
Call 16 messages
lyric shard How do i make the bot call me?
Dropdown menu reverts to placeholder name everytime an option is selected 11 messages
fickle knoll **Expected result**: when an option, `Game` for example, is chosen, the dropdown name should also be changed to `Game` *...
Get what subcommand was used? 35 messages
jagged flame Is it possible to to get what sub command was used? When i console.log `interaction.command.name` i only get the comman...
Get this error on the console 59 messages
bitter parcel The bot do not answer to any slash command sended (is offline) and this error is repetitive. NODEJS: v16.20.0 DISCORDJS:...
Updating permissions in already deployed bot 9 messages
sacred dock I have a bot that I started with fewer permissions needed, now I want to add more commands that will require more permis...
Slash command duplicate 4 messages
ornate mirage I noticed that in my private server my slash commands appear twice, and both seems to be functional. It doesnt cause any...
GuildJoinEvent 8 messages
night needle I have my bot creating some database schemes when the bot is added to a server and then when it leaves, it will all dele...
Is it possible to set user activity using OAuth? 4 messages
late shale I was hoping to set the status of users logged into my web app, idk if this is something the discord API supports or not...
RPC
attachment option 19 messages
spare urchin I have this bit of code, iconURL: interaction.options.getAttachment("authoricon") but when i put an attachment into th...
Get Guild Emoji IDs 17 messages
unreal willow How do you get the ID of a custom guild emoji? I tried this but it didn't work (GuildEmoji is imported) ```js if (key =...
Deleting commands followed but still appear on Discord 60 messages
thorny skiff Up until yesterday was using 14.8.0, now 14.9.0, I have a problem where the bot has slash commands appear that are no lo...
DiscordAPIError[50001]: Missing Access 8 messages
tepid pawn Hello All, currently running into this issue when running my bot in one of my servers. I've tested this bot in my own pe...
Command interaction works on desktop but not mobile 5 messages
lyric kiln This is a weird one I think... one of my users has reported that a command works for him on desktop but not on mobile. H...
Client Shard 4 messages
shut turtle Does anyone know of informing if the Shards are working with typescript? ```ts import { ShardingManager } from "discord....
I need help with this error 3 messages
unborn skiff Error: Failed to parse JSON: Unexpected token in JSON at position 0 at C:\Users\dukes\Downloads\Roblox-To-Discord-m...
Problem with WS and Voice 60 messages
barren kraken Hey guys! I have a problem with the audio playback in my bot now, some time ago I was using my own ws package, and every...
@discordjs package
Const messages 30 messages
hallow briar ```js const { Client, message } = require('discord.js'); const wait = require('node:timers/promises').setTimeout; const ...
How do I fetch a member? 3 messages
indigo crown This doesn't seem to work right now
Is it possible to read members on Events? 2 messages
ember mantle Can we read members from who have joined to a event? Is there any proper way to get it?
I need more help 12 messages
rancid wasp I have made this and i cant resolve id anyways to fix it
how to I do : Watching × Servers status 27 messages
rancid wasp I want to make my bot do watching X servers! How do I do it?
variable error 7 messages
vague elbow I declared a data in the const but it is accusing me that it was not declared. where should i make this declaration? I...
@discordjs package
Bot crashes after running a servercreate command 50 messages
rare reef Hey, I have some problems with one of my commands,. So it should simply create a discord server from a server template ,...
Creation error 7 messages
vague elbow I followed the documentation exactly, I read it and performed the procedures it asked for. however I'm having an error ...
@discordjs package dev release
Error 7 messages
indigo crown ```js // Place your client and guild ids here const clientId = clientID; const guildId = guildID; const foldersPath = pa...
Best approach for this ? 11 messages
prime turtle Hello there, so I wanna make a little game where the goal is simple : count. So, in a dedicated channel, people would se...
delete messages on ban 8 messages
crystal forge Why d.js not allow to set time for messages deletion on ban in seconds, not days? For example, where you ban member from...
Is there a way to unselect a reaction in a select menu? 6 messages
quasi latch Is there a way to unselect a reaction in a select menu?
What is the type called in `discord-api-types` (v10) for registering a command? 7 messages
@discordjs package
Assigning role to user 27 messages
zinc heron Hi! My goal is to assign a role to a user using the bot. I set up the basics of the bot, ping and the basics work. I hav...
where did the member.id attribute go 7 messages
young solstice as the screenshot shows
TypeError: Cannot read properties of null (reading 'fetchClientValues') 26 messages
shadow junco Help me please
Cannot read properties of undefined.. (Error) 14 messages
hallow briar ```js client.on(Events.InteractionCreate, async interaction => { const selected = interaction.values[0]; if (!i...
discordjs/voice 6 messages
upper wraith is it a separate module unrelated to discordjs version, or is it included in the main module? like, i have discordjs v13...
@discordjs package
if (channel && !channel.isTextBased()) return; 8 messages
gray quiver Getting this error
Destroying error 35 messages
vagrant pumice guys i have multi bots working in same project when boughtAt - Date.now() <= 0 is done a new doc inserted in destroy sc...
Get the ID of the Channel Created with interaction.guild.channels.create() 4 messages
warm gale Warn: I don't speak English very good. Hi, does anyone know how I can get the id of a channel that the bot created with...
Select menus & label name 7 messages
hallow briar Hello, so I want my bot to send an embed with the selected option from the drop down menu, right now it is sending the v...
Cannot get online users 9 messages
craggy saddle I am trying to get an online user on that server when I use the s slash command. At that time, an error occurred. I have...
Messages sometimes failing to send silently with "<ref *1> Message {}" log printed on its own 14 messages
gentle timber Title. I just jumped back in after years of not using the library and so much has changed. Namely - when sending a messa...
<channel>.isTextbased() still throwing an error. 23 messages
gentle shoal https://osgnio.sentry.io/share/issue/f2f612a99ab543f4b29542c130b7f12b/
I'm using typescript, but my code has loads of errors. 37 messages
edgy dune The errors are as follow: `[var] is possibly null` (e.g. `client.user is possible null`) `Property 'user' does not exi...
How to use the value of .addChoices 9 messages
mellow kite ```.addStringOption(option => option.setName('game') .setDescription('game') ...
Sub groups 7 messages
deep ledge I'm new to DJ's how can I make a SlashCommand look like `/hii hello hmm`? Is there any reference? For this?
component 8 messages
shrewd hinge how do i get the placeholder value of the current component?