djs-questions

9202 threads · Page 136 of 185

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...
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 59 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...
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...
998292157150535700
Shards 1 messages
jovial moon I Was Creating Shard System In My Bot But When I Run Code Console Is Running 2 Times And Shows This Error ``` [ AntiCras...
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?
986538542350086175
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 }] 7 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? 34 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...
React to a webhook message 34 messages
marsh plank Hello. i would like to know how i could react to a webhook message right after sending it. the code snippet is below
Unknown Interaction [even though it is not] 32 messages
rough hedge uploading the code in the forum because the message is to long
Extreme delay for sending messages 11 messages
spark oracle I've been working on a bot and I left it for a while, but when I came back I realized that messages (sending, not reciev...
Model.findOne() no longer accepts a callback 4 messages
smoky quail code: ```js const levelSchema = require("./Schemas.js/level"); client.on(Events.MessageCreate, async (message) => { ...
The `avatarUrl` object in the `WebHookClient.send` is not doing anything, apparently. 12 messages
wicked scroll Here is the code I'm working on: ```js client.on('messageDelete', async message => { await webhookClient.send({ c...
DNS Slash command doesn't respond 9 messages
near drum I'm trying to implement a traceroute slash command using an API as follows : ```js require('dotenv').config() const { ...
Controlling multiple bots with the same application? 12 messages
silk salmon Is there any issue creating multiple bot clients within the same application? My bots run in one very large server, and ...
Discord.js: Error with setting intents in Client options 90 messages
mystic spruce I'm trying to set the intents for my Discord bot using the Client constructor in Discord.js version 14.9.0 but I'm recei...
SyntaxError: Unexpected token '.' (in djs file) 3 messages
dense storm my bot works on my conputer and a upload it on the plateform "sparkedhost", i reinstall all package and discord.js@14.9....