djs-questions

13317 threads · Page 178 of 267

API error 50035 and DICT_TYPE_CONVERT error 21 messages
Listing new permissions with channelCreate event - permissionOverwrites 10 messages
surreal remnant Hello there! I have a log on Discord.JS v12 that is fired on the `channelCreate` event, where it logs some information f...
Prefix command handler is acting strange 28 messages
lucid apex Hello there! I am developing a discordJS v/14.7.1 prefix bot. I have some problems although. The command handler (att...
SlashComamnd argument 45 messages
is it possible to allow users to execute slash commands in bot's DMs? 3 messages
abstract jungle if so, how? thanks!
Are server subscriptions supported yet? 3 messages
raven niche just wondering, i dont see them on the docs, but is there a dev version that supports them?
Persistent Buttons and Dropdowns 12 messages
granite summit I'm transitioning from using discord.py to discord.js and one thing I'm having trouble figuring out how to get setup is ...
How do you create a channel in Discord.js? 9 messages
queen crescent Hello, I had a quick question. I'm new to Discord.js - Was trying to create a channel, found this on the docs and I stil...
do embeds need intents 4 messages
help regarding guild member permissions and channel permission overwrites 3 messages
gloomy fjord Hi, I'm trying to make an array of all members in a server who have a certain permission, in this case "KICK" : ```await...
Pin a message in a Public Thread Forum 11 messages
gleaming lantern ```TS command.reply({ embeds: [simpleEmbed(msg("cmd-forum-exec-resolve-success", [link]), "normal")] }).then(msg => { ...
Set image to spoiler in embeds 12 messages
chilly wing I was wondering if there is any possible way to put an image to spoiler in the `.setImage()` parameter of embeds ?
Light Weight Version of DiscordJS 6 messages
rare wasp Hey, I’m building out a website + Discord bot and for my use case, I want to use some elements of Discord JS such as cha...
@discordjs package
Button UserID push through 29 messages
gleaming schooner So I have a Event where the Bot sends a Welcome-Message with a Button to Welcome the User, similar to the Discord in-bui...
add reactions to message 19 messages
narrow crypt How do i add reactions? I enabled privileged and guilds, guildmessages, messagecontent and they work but not message.rea...
Question about embeds 5 messages
ember mantle Guys I got a question, Let's say we made 2 embeds and 1 button components. Is it possible to add button components on f...
AutoComplete Function doesnt get Called 28 messages
rare lichen Hello, My Bot doesnt seem to call the autocomplete Function
how i can handle discord ratelimits? 54 messages
faint sinew for example my bot shows the current song and when people skip too fast the message dont get updated because ratelimit. ...
What is the easiest way to replace a mention or by the user channel name in string ? 12 messages
shadow epoch What is the easiest way to replace a mention @ or # by the user / channel name in string ?
slash commands and commands in general 41 messages
void tendon i need help with my code
help 8 messages
hidden gust const Discord = require("discord.js") const intents = new Discord.IntentsBitField(3276799) const bot = new Discord.Clien...
Problem getting channel 66 messages
graceful lodge so i have logChannel defined like this ```js globalThis.logChannel = client.channels.cache.get("channel id"); ``` and i...
Slash commands 23 messages
Starting values with collections 3 messages
toxic latch HI, How can I give a new collection starting values. For example: ``` new Collection([ { ... } ]) ```
@discordjs package
ButtonBuilder, but ButtonStyle not exported from DJS? 6 messages
rugged ginkgo So got an issue with my installation of DJS, it seems to think (and a search of the code seems to agree...) that `Button...
interaction 28 messages
mental mural help with this command
Bot DMs not appearing on shards outside of shard 0 3 messages
olive shore A while back I had an issue with the bot not registering DMs unless it was on shard 0, and i was told that its because a...
How to get an emoji with id when the emoji is one built into discord 15 messages
marsh furnace How would I go about grabbing an emoji using id when the emoji is built into discord? `<guild>.emojis.fetch(<id>)` and `...
The reply to this interaction has not been sent or deferred. 37 messages
modest ocean For some weird reason, i only get this error when spamming the comment... when doing it 1 by 1 it works perfectly fine
Need some assistance in converting slash commands to prefix commands 16 messages
drowsy cargo Hello, since i am new to coding apparently , i want to convert my slash commands to prefix commands but i need some assi...
Bot stops listening for events but stays online 45 messages
karmic sapphire I recently upgraded to 14.7.1 and I'm having an issue where after a seemingly random amount of time (usually between 0.5...
context menus not working 17 messages
torpid holly code: ```js const { ContextMenuCommandBuilder, ApplicationCommandType } = require("discord.js") module.exports = { ...
[Potential Bug] incorrect channelUpdate event after editing a channel 26 messages
exotic forge It seems like DiscordJS does not emit the correct `channelUpdate` event after a channel's parent has been edited using `...
Logging 15 messages
gritty hull How do I enable verbose logging in latest DJS?
What's the best, fastest and easiest way to make and register slash commands? 23 messages
void oasis The reason I'm asking this is because I've had a lot of trouble trying to register slash commands so many times that I j...
Passing MessageContextMenuInteraction data to other interactions? 3 messages
sick pendant Hi! I'm working on a context menu command, where you click on a message and it tries to translate the message content by...
Interaction data to another interaction 18 messages
craggy lodge Hi, I'm triyng to pass the first interaction data in "interaction" (right-clic) to the modal interaction. Now, inside ...
Check with a list of user ids in string format if they are present in server 58 messages
tepid wadi Hello! I'm currently on 14.7.1 and I'm running into a lot of trouble attempting to get this check completed. I am able t...
Got bunches of errors when import {Client} from 'discord.js' to react environment. 3 messages
zinc socket my package version: node.js version : v16.16.0 discord.js version : 14.7.1 react version : 18.2.0 I c...
DJS BROKE HERE TOO 16 messages
winter fern My bot suddenly started responding multiple times from yesterday. I tried changing host. And doing all debug. After that...
TypeError Cannot read properties of undefined (reading 'name') 3 messages
fair pumice Can anyone help me sovle this problem ?
Can check if the invite from the same server? 4 messages
glacial valley if someone send msg and the message has link for invite server i can check the link if from the same server id like if n...
Strong typing between ApplicationCommandType and CommandInteraction? 18 messages
eager raptor I currently have the following code: ```ts export abstract class BaseCommand<T extends CommandInteraction> { abstrac...
Error 50035 components[BASE_TYPE_REQUIRED] 12 messages
tired scroll error is shown below
How can I get the precise time at which a request is sent? 14 messages
stoic silo I'm looking to debug an issue and, for that, I need to know the exact time at which discord.js sends the request to Disc...
How to make a SlashCommand Handler with ES6? 40 messages
dark shell Im having trouble creating a way to register and make a command_handler like in discordjs.guide I've had sucess with th...
Slash command builder built command type 4 messages
hexed solar What is the type for a built command with the slash command builder in typescript?
Custom Commands 5 messages
viscid stump I am new to coding and I am trying to get custom commands for my bot
Stuck on event handling tutorial 9 messages
feral sandal Hi! I keep getting this error when I run any command, like /ping: ````TypeError: Cannot read properties of undefined (re...
Wrong error code 37 messages
vale oxide So lately I have this issue that the interactionCreate event is fired really late sometimes, like 5-10 seconds after the...