djs-questions

13317 threads · Page 100 of 267

The bot does not read the command although it does appear in the slash bar 61 messages
woeful plaza Hello, I am creating commands for my bot, but I do not know what happens that although the code is 100% right, there is ...
Permission system not working 26 messages
rare reef Hello, I'm currently coding a steal command where you are able to add emojis. But the Permission system isnt working... ...
Discord bot not starting even tho code hasn't been changed for a long time 27 messages
alpine holly Is this a api bug or is it just that i screwed up my code? It worked a bit ago but then i added a file and then it would...
Modal input types 5 messages
red gyro How many types of inputs can we have in Discord modals? I know of short and paragraph text inputs. But can we have dropd...
Send message to channel using channel ID 3 messages
spark bison Hello. I need some help with getting my bot to send a message to a specific channel. The idea is to eventually replace t...
Message Collector Filter not working 10 messages
gusty thistle The filter is not working for some reason ```js console.log(codeValue); const filterDelete = msg => msg.author.id === u...
connection_timeout when using [Register a slash command against the Discord API] 's code 21 messages
little turret ok, so i m just getting started in doing discord, i open the discord.js, followed the instructions to npm installed the ...
messageCreate not firing. 3 messages
Invalid body form Error 7 messages
signal cape Im making a counting command that allows you to set up the command in any channel you like. However, a 'invalid Body For...
channel.messages.fetch is giving messages outside the after/before range 4 messages
digital nova I am encountering an issue where ```ts const messages = await channel.messages.fetch({ ...
Get a list of all mutual severs 24 messages
frosty mulch I'd like to get a list of every server that the bot shares with a user. I've looked around here and tried things like `c...
Multiple options but only one can be used 2 messages
opal breach Is it possible to have multiple options but only one can selected/used, kind of like subcommands, but the subcommand tak...
channel filter 5 messages
dusky tusk so im updating to v14.13.0 and im having problem with the serverinfo command i had this ```js (`:speech_balloon: Channe...
key system 2 messages
livid heron How can I do key-api system?
Button that opens a DM 8 messages
rain pine Hi, I've been wondering if it's possible to create a button in DMs that-- once pressed --will create a direct message ch...
The ID is displayed instead of the user. 5 messages
tender sable The bot creates an Embed with a new member and in the line with a link to the user ".setDescription(`We have ${member.us...
Slash commands: choice options limit 6 messages
wet silo Hi, what's the limit of choices in .setChoices please ? I need to place 57 choices but i don't know what's the limit so ...
Webhook not sending 16 messages
cold folio This is compiled Typescript, but im just lost on where the issue is... my console.log()s arent passing the hook.send() a...
Modal Submissions aren't working 11 messages
full folio Code: ```js client.on("interactionCreate", async (interaction) => { if (!interaction.isModalSubmit()) return; con...
Cannot read properties of null. 3 messages
last wagon ```js const { SlashCommandBuilder, PermissionsBitField, EmbedBuilder } = require('discord.js'); const warningSchema = re...
Issues with two collectors 4 messages
topaz mirage Howdy, I have a parent interaction with buttons and what not. I have another interaction that responds to the buttons wi...
How do I provide a variable for my interactionCreate event in another file? 7 messages
worn yoke archive "getdata.js" ```js async run({client, interaction, options}){ const filtered = choicesUsers.filter(...
Is it possible to check if a user has 2fa enabled? 8 messages
pliant wing I've searched around a bit but the only thing I found was `mfaenabled`
[discord-rpc] Prevent multiple listeners 4 messages
woeful hedge guys I have a question ```js app.post('/extension-call', (req, res) => { if (req.body.playing === true) { u...
RPC
Edit embed with message ID 5 messages
bronze saffron I want to edit an embed with the message ID. I try this `client.channels.cache.get(channelId).edit(msgId, {components: [...
Check if a user has Nitro or not 9 messages
dawn zephyr Is there anyway to check if a member/user has Nitro or no in discord.js@13/14 ?
DiscordJS Hosting 4 messages
regal python Hi ! Anyone know how to host a discordjs bot for free with github ?
Restrict slash cmds to admins and me 34 messages
onyx horizon How would i make my slash commands only be available to admins of a server and to me? heres my slash cmd code ```js req...
Using Commands 29 messages
dense kernel my main discord account can access my bots commands but when i try to use commands from a second account nothing shows u...
GuildCreate and GuildDelete iconURL when null 19 messages
rare coral Hello, I'm trying to make my bot log which servers it joined/left with name, icon and id but it creates an error and doe...
Giveaway interection question 43 messages
grave stone Hello , im new in discordjs, i actually download the foundation of discord bot from github, then on top of it i create m...
Doesn't DiscordAPI reflect the latest role position? 13 messages
molten moss I made a test guild for my bots. The guild has this roles scoreboard(?) - Owner - Mod - Member Guild has these members...
guildLeave fires on bot restart 2 messages
fallen dome Hi all, when I restart my bot the guildLeave event fires several times always reporting the same ids of some servers (wh...
Voice messages 9 messages
pure radish How to send an audio file as a voice message?
avatar options 9 messages
unique mauve I want it to get the target avatar when the command user put it in but if there is no target then it would get the comma...
(Looking for advice/tips) Developing a bot for my server 4 messages
lime star Hello, I'm pretty familiar with coding and how things somewhat work, and wanted to try my hand at making/developing a bo...
Error with deploying commands 27 messages
boreal root I followed the discord.js guide and made my own command, but when I try and run `node deploy-commands.js`, it has an err...
Function doing to slow 6 messages
TS + D.JS Error - unable to get the options 11 messages
plain whale Hi, I'm working with a CommandInteraction here & am trying to get the option values. I'm working in a Typescript bot and...
member.pending and requirements 8 messages
cold sand Does the `GuildMember.pending` will return `true` if the user has to wait the 10 minutes before talking or hasen't verif...
Webhook rate limit 19 messages
glad canopy Hi, my bot can't send webhook messages (promise not resolving) but using node-fetch it is sending them just fine. I thou...
My information command does not respond. Please help 4 messages
halcyon scarab ** Here is my code; ** ```const { SlashCommandBuilder, EmbedBuilder, Embed } = require('discord.js'); module.exports =...
Deselection the option in select menu 22 messages
granite turtle hi, how do I uncheck the option after an interaction?
How to make gateway shards always reconnect. 30 messages
somber vessel Hello, currently shards stop reconnecting after few tries. What do change so they will keep on try to reconnect but mayb...
How to cache and receive User Object 10 messages
tidal yoke Hello, I'm currently trying to cache users by using ```js let test = client.users.cache``` and i log it by: ```js ...
.setTimestamp is not a function 6 messages
potent obsidian ```js client.on("messageCreate", (message) => { if (message.content.startsWith("ping")) { const exampleEmbed = n...
How to respond image for autocomplete? 10 messages
dense nimbus Hi, I'm trying to build a similar discord bot with a slash command just like as a default one called "giphy" As you can ...
How to get a member's discord id using javascript? 6 messages
iron quartz Hi, I have a discord server, i used tatsu bot to allow points to members of my server based on how active they are. For ...
how to use proxy in djs 4 messages
peak sparrow how to use proxy in djs
@discordjs package
Private/Public Application 19 messages
onyx urchin Is it possible to change a application from public to private?