djs-questions

9202 threads · Page 184 of 185

Forum handling 3 messages
round kernel I am trying to make my bot delete a forum post when the title gets updated and includes a certain word. Would I use a T...
Button clicked inside forum thread returns missing access 19 messages
harsh hearth ```rawError: { message: 'Missing Access', code: 50001 }, code: 50001, status: 403, method: 'GET', url: 'https://...
i need help 3 messages
Error with date.now() 8 messages
mossy relic I'm making a bot which you can put how many seconds you want into the future and it tells you how long until then whenev...
How to check the user roles in interactionCreate 14 messages
shut jacinth i was trying `interaction.member?.roles.cache.has` however it says `Property 'cache' does not exist on type 'string[] | ...
Slash Commands Duplicating 8 messages
thorn hazel Every time i deploy global commands they duplicate one of them removes when i deploy it as guild but if i deploy as glob...
slash command with choices error 18 messages
granite sand Part of My Handler ```js } else if(option.StringChoices && option.StringChoices.name && option.StringChoices.description...
Converting bigints to permission string 8 messages
candid ridge How can I convert this `8n` to permission string. (Expected: `Administrator` for this situation) ```js import {Permissio...
About mentioning in Embed message description 7 messages
sullen cosmos I was trying to add mention in embed description when user join the server using `.setDescription(`<@${member.user.id}>`...
guildMemberRemove uncached members 6 messages
willow stirrup So I am capturing guildMemberRemove events and I have the GuildMember and User partials selected. When the member leaves...
Commands aren't working 5 messages
idle jasper Hi, I'm building a discord bot to test and I'm trying to fix the commands but I can't bc it doesn't recognize the comman...
Sending file without file 12 messages
gentle vector Hello, i want to send a string as a file, how can i do that?
Unknown interaction? 8 messages
lilac wadi Hi all! I have an ``Unknown interaction`` error that gets thrown on an ``interaction.deferUpdate()`` line — does anyone ...
Fetching data from a database, filtering it by only guilds handled by the shard 8 messages
shadow onyx I have a database containing data about multiple guilds, and i have to fetch some generic data (not necessarily related ...
How often should client.user.setActivity() be used? 24 messages
untold cloud I currently set it to reset the activity every 10 minutes, but what's the max length of time I can set it to (while main...
Not a single command working 10 messages
west iron Not a single command of my bot is working , anyone knows what i gotta do to fix it ? no errors in console ttho
Find a role by name then update it 29 messages
gusty thistle How do I find a role in a guild by it's name. Then update it's info? ```js guild.roles.cache.find(role => role.name === ...
How would I access the user's connected Steam profile? 5 messages
vernal quail I'm trying to access the linked steam profile connected to their discord profile in the settings of the discord client �...
ImageURLOptions? 14 messages
timber token I see no image url options https://discord.js.org/#/docs/rest/main/typedef/ImageURLOptions
Modal Submit, how to edit triggering ephemeral? 16 messages
primal horizon If I'm triggering a modal from an ephemeral message button, is it possible to edit the original ephemeral message during...
Modals 5 messages
sage bobcat Can I add select menu to a modal?
Get message count in channel 40 messages
spark spire How can I get the message count in channel, hopefully this is possible because when using search on the client we can ge...
Badge Supports Command 11 messages
warm anvil How do you get the support commands badge?
invite* events don't emit 85 messages
novel silo I am currently creating an audit-log bot that monitors most events in a server, but right now I am having issues with `m...
Discord.JS and Deno 5 messages
tawdry laurel ist it possible to use discord.js with deno instead of node.js?
1150878890307358882
get message from Context menu 9 messages
onyx wasp How do i get the message from a Message Context menu? if i log the interaction i dont see anything related to the messag...
Shard Presence 3 messages
mellow frigate How do I change my client's Presence on each Shard saying THAT Shard? So in guilds with e.g. Shard id **1**, it will say...
Is the description of a command with subcommands seen anywhere? 7 messages
fathom cliff it throws an error if its not included, but i dont see where its displayed.
slash command and context menu command with the same name 37 messages
heavy stirrup Hey, so I have a couple of moderation commands, e.g. ban, kick, timeout.. Those are all slash commands. Is there a way t...
voiceStateUpdate newState.channelId == null when i join a channel 5 messages
idle tartan why is newState.channelId = null when i join a channel ```js client.on("voiceStateUpdate", (oldState, newState) => { ...
Problem with user banner 9 messages
drifting forum Then I try to member.user.bannerURL(), i get an underfind, but member have a banner. How I can fix it?
Interaction response 'username cannot contain 'discord'' 62 messages
empty tusk Only whilst on the production bot, *every attempt to respond to interactions,* the API returns `DiscordAPIError: Invalid...
Check for Slash Command Permission 106 messages
glossy moth Hey, I want to check if a user has the permission to use a slash command while taking into account all the different ove...
deselect a select menu outside to edit the message 3 messages
vivid pilot is there another way to reset your selectmenu after something is selected outside to edit the message
ConnectTimeoutError 30 messages
elder ether Hey there, For 24 hours now, without any change in my code, the bot randomly throws a ConnectionTimeoutError and stops ...
Interaction (De)Serialization 11 messages
obsidian scaffold I’m in the process of rearchitecting my bot and am migrating over to AWS for my infrastructure. I’m planning on using SQ...
Setting forum post title 6 messages
half tendon Is there a way to set the title of a post within a forum yet? Maybe add reactions too? I could not find the parts in th...
Delete bot Message in a DM Channel ! 7 messages
oak ether Hey ! I'd know if it's possible to clear all messages from the bot in a DM channel ! I tried in many way, but nothing s...
Property 'commands' does not exist even after module augmentation 20 messages
loud yacht <:TypeScript:962710866569093203> `DJS V14` Hi there, I'm doing ```ts client.commands = new Collection() const command...
Embed field with multiple values? 6 messages
hidden viper As the title suggests, I'm trying to output an embed containing one field with multiple values or one value being a stri...
Can you edit an ephemeral follow-up message? 11 messages
wraith glen I want to be able to edit the original ephemeral message and also the ephemeral follow-up message. Is this possible?
Djs V14 setStatus and setPresence dont work 12 messages
limber lintel const { Client, Intents, Message} = require('discord.js'); const util = require('minecraft-server-util'); const {EmbedBu...
help.js file not working - not interaction 5 messages
safe birch Ok I feel like I'm going crazy... If I have a command like this (with `taco.` as the prefix) `taco.help [command name he...
PM2 Configuration File for Sharded bot 7 messages
mighty birch How can I create an auto restart config in PM2 for Sharded bot? Will this work? ```js module.exports = { apps: [ ...
What PORT(s) does the Discord.js lib uses for API calls and WS to connect to discord? 16 messages
potent grove What PORT(s) does the Discord.js lib uses for API calls and WS to connect to discord?
Unknown role error 19 messages
winter knot ```js module.exports.run = async (client, oldPresence, newPresence) => { if(!newPresence.user.bot && newPresence.gui...
Is Bun runtime will be supported? 37 messages
molten dune I am just curious that new bun runtime which is very fast so i just wanna ask that will discord.js will support Bun http...
1150878498534199426 986538542350086175
How can I get all channels in a guild if I have the guild id? 10 messages
obtuse mango I've searched everywhere and I can't find anything.
Shards are Still being spawned + Sharding Ready died 55 messages
rare lichen Code is fine. Token is fine. Works with Staging but not on main (i know sorta a replica but other errors)
How do I remove a deployed slash command? 16 messages
fallen pulsar How can I remove commands that are created but no longer used? They are guild commands.