djs-questions

9202 threads · Page 183 of 185

Hi, i have a question 2 messages
coarse wasp I would like to ask you how can i do somethimg like that ?
REST | [10062] Unknown Interaction 36 messages
bitter imp Using following code for some reason seems to keep failing: ```ts try { const reply = await rest.post( Rout...
998292157150535700
How to edit all server categories permissions 6 messages
proper compass ```js interaction.guild.channels.cache.forEach(channel => { //Get each channel if (channel.type === "categor...
DiscordAPIError Invalid Form Bodyrecipient_id Value id is not snowflake. 44 messages
amber pond here's my index.js ```let discord = require('discord.js') let bot = new discord.Client({ intents: [discord.Intents.FLAGS...
How to get User ID with using SelectMenu 5 messages
patent dragon I am trying to get the ID of the user who executed the slash command using the SelectMenu present on the SlashCommand
Passing null in a textInput value property 4 messages
chilly igloo I am trying to pass in null for the TextInput setValue() method, but it's not working. Af far as I know tho, you should ...
How to show emojis as part of StringSelectMenu? 2 messages
bright tartan I've been trying to get emojis to appear in my select menu, and my bot keeps crashing due to invalid snowflake id. I'm ...
Discord.js + OAuth2 3 messages
merry stream Trying to make a discord bot slash command to send a Oauth2 code to see user connections. Having trouble figuring out i...
Getting the presence from user 6 messages
fleet marsh Hello! I've been trying to make a bot that gets my current Discord status (whether I'm online or offline) to show in my ...
How can I send an embed with Discord.JS Rest 4 messages
wicked sierra Hello, as you can see from the title I'm trying to send an embed with discord.js/rest. So far I haven't had any luck. I'...
New To v14, Code Not Working 15 messages
winter zephyr Hi! I used to make bots when v12 was out, but I got busy and now I have decided to get back into it. I am currently foll...
Reaction Does Something 8 messages
jagged flame Having trouble finding out how to know when a user reacts to a specific message and then just output to the console some...
Anyone know a FREE Hosting Site that's always-on? (keeps apps going 24-7) 2 messages
vocal galleon I've yet to find a free platform for keeping my bot online 24/7, they all either have only like a 30 day free trial or m...
Not a singlecommand working 44 messages
west iron I got over 10 commands and they were working perfectly , but then they stopped working after i started using mongodb , ...
reason canvass.closePath is not a function 3 messages
light lake I wanted to create a welcome canvas but it saying reason canvass.closePath is not a function but why?
How to debug bot disconnect 1 messages
fringe panther Hi, so I'm hosting a bot using Oracle Cloud. After a random time (1~2 days), bot turns offline, even with the process ...
Timeout Command Not Working 4 messages
shut jacinth When I call my timeout command I get an exception for TypeError ```ts export function callback(interaction: Interaction...
Get Bots Color 3 messages
coral trench Hallo! The last time I used discord.js, you could use `interaction.guild.me.displayHexColor` to get the bots color. This...
advanced auto complete aearch 4 messages
scarlet sinew How can I search an array of objects but for multiple fields. Name, description, and other properties in the array. Will...
Cannot read properties of undefined (reading 'guild') 6 messages
ancient musk hey, i'm quite new to the discord api so i'm not familiar with things like this. basically, i want to make a command tha...
DM messages not triggering events consistently 7 messages
supple fern I am getting my `messageCreate` & `messageUpdate` event correctly when the message is made in a guild, but in DM it does...
Function returns undefined? 6 messages
lofty topaz Code: ```js client.on('interactionCreate', async (interaction) => { if (interaction.isCommand()) { const { command...
How to return channel name given ID 15 messages
nova sorrel I'm trying to write a script that displays chat messages in a server's text channel, but it's just sending back the chan...
Bot that records audio in voice chat 2 messages
plain willow I am looking to build that records all voice from a voice chat. I am curious what the best APIs to use this are using th...
ReferenceError client is not defined 5 messages
amber pond ```module.exports.run = async (discord, bot, message, args, p) => { client.users.send('id', 'content'); } modu...
TypeError Cannot read properties of undefined (reading 'FLAGS') 8 messages
amber pond here's my code ```let discord = require('discord.js') let bot = new discord.Client({ intents: [discord.Intents.FLAGS.GUI...
Webhook help? 20 messages
shrewd hinge ```js const { WebhookClient } = require('discord.js'); const webhookClient = new WebhookClient('ata','at...
Send a const in a code block 5 messages
analog mango Need to send a constant inside a code block ```js const number = 5; await interaction.channel.send("```{number}```") ```...
Make a simple bot [Beginner] 10 messages
tame belfry Hey! I just switched from `discord.py` to `discord.js` I'm trying to learn the basics, but I can't manage to make it wo...
Has this button in the user right click a new discord feature or created by discordjs, how if so? 1 messages
runic badger see title
[solved] Get member count while filtering out bots 17 messages
exotic summit ```js const memberCount = interaction.guild.members.filter(member => !member.user.bot).size; ```this apparently isn't a ...
[solved] Cannot figure out why embed won't send? 5 messages
exotic summit I cannot figure out why this embed will not send. If the screenshot is too small: code: https://pastebin.com/afSQJyYQ e...
Why my bot slash command is not appear 13 messages
onyx marsh I run deploy-commands like in the guide said but when i type slash command in my server only my two old slash command ap...
Not working 8 messages
sudden dune Can anyone help me? I'm new to bot developing...
How to check if all shards are online 3 messages
brave pewter I am trying to make a system that sends a message to a server once all shards are online, how can i see if all shards ar...
998292157150535700
Im new to discord.js, idk how to fix this? 8 messages
iron python Can't figure out what i need to fix, nothing seems to work
Help 2 messages
eager oasis SqliteError: malformed database schema (?) at Database.prepare (/home/runner/Anti-Nuke-Bot-2/node_modules/better-sql...
roleMembers.slice is not a function 3 messages
gleaming schooner So I have a problem: I wan't to fetch members and see if they have a role and then get the first then and splice them so...
client.user.accentColor is always null 11 messages
forest crag Hello! I have a problem. I don't know why but client's user acentColor is always null even if I fetch it. Is this a bug ...
Checking if message is from DM not working 5 messages
late quest ` client.on('messageCreate', (msg) => { if (msg.author === client.user) return; if (msg.channel.type ...
ExpectedConstraintError Invalid string length 20 messages
fading helm I've replaced the directory this is running in with `<bot>` for privacy. ```js /home/<bot>/node_modules/@sapphire/shape...
members.fetch() Cannot read properties of undefined (reading 'send') 4 messages
bright island While running ```lua var a = await client.guilds.fetch('Server ID'); var b = await a.members.fetch({ qu...
Embed YouTube video 3 messages
vivid ice How can I display a YouTube video player inside an embed that is sent by a bot, like I have a command where I give the b...
two interactions at the same time with buttons 13 messages
molten valve Multiple People are managing to click a button that should only be clickable once. It’s essentially someone clicks it an...
HTTPError [FetchError] request to httpsdiscord.comapiv9channels 5 messages
golden nova ```js HTTPError [FetchError]: request to https://discord.com/api/v9/channels/1047428819130269747 failed, reason: write E...
Expected array, received object 15 messages
pine ingot I'm trying to set up choices for a string option, but I get an error (`Expected array, received object`) when registerin...
`DiscordAPIError[50035] Invalid Form Body` When trying to send embed 10 messages
thorny bear ``` ..\node_modules\@discordjs\rest\dist\index.js:667 throw new DiscordAPIError(data, "cod...
TypeError Cannot read properties of undefined (reading 'ALL') error appears when specifying intents 18 messages
fringe phoenix hi, I am trying to set the intents of my bot, but when I try to specify the intents, i get this wacky error. Does anyon...
Shard X is reconnecting. (But never does) 10 messages
lunar wharf At the moment I just have a basic client connection with 2 Discord Servers running with this bot. I am having an issue ...
Presence Status always set to online when user has Custom Status 3 messages
warm stone According to what the API returns, if a user has a custom status, regardless of if they've chosen "Do Not Disturb" or "I...