djs-questions

13317 threads · Page 139 of 267

client.isReady() type guard might be broken 15 messages
vale oxide It just doesn't change the type for me... https://media.discordapp.net/attachments/824411059443204127/11019428593740145...
Get posts with in a Forum channel 2 messages
past obsidian I'm tried this but its returning me stuff from other channels on that guild ```js const $channel = await client.channel...
Command dont work 5 messages
wind needle yo, why doesn’t my bot write anything when I do !test ? Here’s my code: ```const Discord = require("discord.js"); const...
How to avoid interaction listener mixing commands 13 messages
tacit osprey Im coding a command which update a user from a database, it returns an embed message with user's information and it have...
Slash command options 8 messages
empty path Why my slash command option dont have getSubcommand or getSubcommandGroup, etc...
message.member.permissions.has(PermissionsBitField.Flags.ManageMessages) 4 messages
sudden turtle Is this code returns true if the member has permission on channel which the message sent?
Bot Status NOT VISIBLE 16 messages
radiant knot hi, I'm using discord.js V14. I wanna change bot status to STREAMING, but my code isn't works. Here is my code ```js con...
Easiest way to lock a channel 2 messages
digital nova What's the easiest way to temporarily lock a channel so no users can send messages?
Commands Don't Work 22 messages
wise gazelle I am using **Visual Studio **
why the reply two times 2 messages
shrewd flicker ```js client.on('messageCreate', async message => { if (!message.guild || message.author.bot) return; let price_wit...
Get another bot's id 17 messages
hollow pewter I want to reply to messages by a specific other bot, but when I use message.author.id I get "Cannot read properties of n...
/automod Setup Automod for your server works on v13 or v14 only 4 messages
open chat channel 26 messages
Unable to get options using ts on InteractionCreate 13 messages
@discordjs package
How can I turn off the microphone on the bot itself? 62 messages
timber spoke I can selfmute the bot with the joinVoiceChannel feature, but I couldn't find its external cast. Can anyone help?
give user specific channel permissions 2 messages
limpid vector I have this `channel.permissionOverwrites.delete(interaction.user.id)` to delete a users specific channel permission. Ho...
Bot status not visible 30 messages
warm jewel this is my code ```javascript const { Client, GatewayIntentBits} = require('discord.js') const client = new Client({ ...
Commands are not getting deployed 24 messages
slate barn Hello, I was making this deploy-command script and its not working for some reason. I'm using typescript for my project ...
Bot Is Not Turning On 60 messages
wise gazelle I am currently using **Visual Studio Code** to program my bot. Here is my code so far: ```index.js // Requirements and...
does the message create event still trigger when a followed channel publishes something? 2 messages
night needle ^
Cancelling Modals 5 messages
hard idol Hello, I actually use modals for my rp bot. The issue is when a member click on the button to show the modal and cancel ...
bot spams 18 messages
night needle ```js module.exports = { name: "messageCreate", once: false, async execute(message, client) { if (m...
unable to fetch members 35 messages
How do I check the bot's permissions? 11 messages
tender flame Hello everyone I'm trying to make a check for the bot, whether it has such permissions, but when output knocks out the e...
Examples and Templates 2 messages
rocky star Hello, I have experience building multiple bots, but I have encountered the same problem every time. The file structure...
How code I send the discord.js version as a message? 12 messages
untold imp I want to be able to add the discord.js version that is running
Can't send embed or add roles 17 messages
viral bear Hey, my GuildMemberAdd isn't working... ```js client.on("guildMemberAdd", async (member) => { const channel = member...
any idea why no logs even when messages? 5 messages
copper thorn ```import { ChatInputCommandInteraction, Client, ApplicationCommandType, ApplicationCommandOptionType, ...
How to get a user's status outside of GatewayDispatchEvents.PresenceUpdate 9 messages
rancid ruin Hi, I've checked on the ApiUser / ApiGuildMember and cannot see any way of getting a users status. Is it something not a...
@discordjs package
Bot Stops Song 4 messages
jovial moon The Music Package Is Works But After 30-60 Seconds The Bot Stops Playing I Think Its Djs Error Can AnyOne Say Temperory ...
multiple clients for same shard 2 messages
wicked widget Hello! What happens if I have multiple same-codebase gateway clients running for the same shard? e.g. In the case of 2 c...
rest.put(Routes.applicationGuildCommands(clientId, guildId) stopped bot from working 9 messages
iron dirge From nothing the bot stopped to work, after some debug I found that the problem was at rest.put(Routes.applicationGuildC...
options 4 messages
copper thorn { type: ApplicationCommandOptionType.Integer, name: "Parking", description: `Parking required?`, ...
why he not changing postion or setting the parent for the channel 26 messages
fading jay channel.guild.channels.create({ name: channel.name, type: 0, topic: chan...
Handling StringSelectMenuInteraction 7 messages
jagged folio ```javascript const value = menu.values[0]; ``` This is how I read the current selected value from a <StringSelectMenuCo...
hi guys 5 messages
tiny axle does ppl use @discordjs/core library and typescript language to develop dc bot?
dev release
updating my bot from v13 to v14 and need help with slash commands that are no longer working 9 messages
stark thunder Hello all I also created a stack overflow and it explains everything with code example: https://stackoverflow.com/questi...
Error[ rawError: { message: 'Missing Permissions', code: 50013 }] 8 messages
upbeat apex i have my bot with botPermissions: [PermissionFlagsBits.Administrator], const nick = interaction.options.get('ig...
Error [TokenInvalid]: An invalid token was provided. 7 messages
median lotus const { Client, GatewayIntentBits, Partials } = require('discord.js'); const { TOKEN, PREFIX } = require("./config.json"...
Bulk Deleteing Bot Sent messages only 12 messages
rancid wasp is there anyway to bulk delete messages From the __BOT ONLY__
Attachment Images erroring 6 messages
weary creek Hi, I am currently using the `AttachmentBuilder` to attach a URL to a `.edit({})` function ```ts const file = new Attac...
editReply is not a function (awaiting buttons on a deferReply) 29 messages
prisma kernel Trying to add buttons and handling responses to those buttons in my slash command, following this guide page: https://di...
Did a recent Discord / Discord.js update affect new line spacing in embeds? 17 messages
crystal solar Users of my bot have been reporting weird new line spacing, specifically extra new lines being added when traditionally ...
About /core 11 messages
wicked widget If i use /core, could I access to any of these events: https://discord.com/developers/docs/topics/gateway-events#receive...
I'm running about 100+ bots with a single script, how do I reduce the bots resource consumption? 35 messages
tiny gulch I'm running about 100+ bots with a single script, how do I reduce the bots resource consumption? How do I make it more s...
Guide Feedback (Cooldowns Section) 3 messages
ruby gust The guide explicitly talks about moving events and commands to their own folders/files but when cooldowns are introduced...
DiscordAPIError: Missing Access 3 messages
hearty relic my bot has authorization but i get an error like this (v12)
Add field to Guild Rest 10 messages
pulsar fulcrum Hi ! I want to know, with Discord.JS, there is a way to add extra fields to Guild Rest Request ? To explain, I want to a...
Hello, help pls 2 messages
lone mural Hello, i want to know how to do for do select menu pls with my handler pls exemple : ```js ```
I learn that in this video 21 messages
broken shuttle https://www.youtube.com/watch?v=O9OHqFlLhQg&t=317s and i don't know why it give me this think. i want to make a minecra...