djs-questions

9202 threads · Page 149 of 185

[TypeScript] Non required option for slash commands 19 messages
pulsar fulcrum Hello ! I wanted to know, I rewrite my bot with TypeScript and I have a problem. When I want to get the value of non-re...
Bot doesn't respond 9 messages
ancient yacht Hi guys, My bot is online but doesn't respond to the command !hello. I've tried many different codes and the bot never...
move user into another text channel 12 messages
novel inlet Is there a way to do so? Only text channel, not voice. I need to move user into the newly created ticket once they press...
Channel Slowmode 4 messages
warped aspen Hello, how do I add the slowmode to the channel configuration when I am creating it?
event guildDelete 7 messages
gaunt wedge after upgrading to 14.8, I noticed a strange error every time I was client ready the bot, the `GuildDelete` event has tr...
DiscordAPIError[30034]: Max number of daily application command creates has been reached (200) 12 messages
naive barn discord api error
Does .partial then .fetch fix .guild being undefined on a message? 11 messages
rare wasp I’m getting a runtime error where a message in a guild has .guild as undefined even though it should exist. From my unde...
Select Menu into an Embed 4 messages
dry kite Hi all I am working on a Discord bot for a DnD campaign of mine. The bot is supposed to pull data from a MongoDB collect...
Is it possible to make multi-word command handles with discord.js? 4 messages
lament nacelle I have seen bots that have multiple words in their command names, but am unable to find documentation of doing this with...
terminal command load 5 messages
formal snow how would i make something like this(image attached)
reset select menu choice 5 messages
granite aspen I want to reset a string select menu's option back to none after a user chooses an option. how do i do this?
Bot Disconnected without any logs or error 55 messages
soft pulsar After 4 days without issue with debug mode on, without any visible message the bot stopped responding to requests and ap...
Issues with Muse 2 messages
barren cairn Hey, I've been running the Muse bot (https://github.com/codetheweb/muse) for a couple of months but for a couple of week...
button reply in slash command to another user 2 messages
limpid vector here's the scenario, somebody types /hello <user>, i want the user to get a hello message and an option through buttons ...
Allowing user to react only once 11 messages
vast cloud Making a poll command and I'm trying to implement a way to only allow a user to vote once. For e.g. if they react to mor...
cooldown isnt getting removed 2 messages
gloomy haven when i try it it always says that their is no cooldown while there is. heres the cooldown code: ```js if (command.cooldo...
Embed Fields Only Image 10 messages
cyan lance Hi , this not works ? i need make this updatable every 10 mins but FIELDS have only image. like this example...
how to get correct thread type 11 messages
pseudo panther ```js const threadType = (isPrivate && (server.premiumTier == 'TIER_2' || server.premiumTier == 'TIER_3')) ? 'GUILD_...
the bot is not receiving dms 6 messages
pseudo panther ```js const Discord = require("discord.js"); const { GatewayIntentBits, Client } = Discord; const client = new Client({...
Error [ShardingReadyTimeout]: Shard 0's Client took too long to become ready. 10 messages
random pike index.js: https://pastebin.com/VfnXMhzQ Output: https://pastebin.com/4krbDsxk
command with database Tags 5 messages
cursive zinc I'm trying to use the database tags in my commands, but when I want to add a tag to it, it doesn't work and I don't get ...
Autocomplete shows everything when nothing is typed 4 messages
median frost How can I do it so that when the user doesn't type anything, the autocomplete shows nothing
Music Player Optimizations 1 messages
vapid spoke How can I optimize my music player to perform well in a minimal PC like pentium? that too when its downloading songs fr...
Problem deploying slash commands 4 messages
frozen bough I am having an issue deploying my slash commands, but I am following the discordjs guide, using .env instead of the conf...
book discord bot no messages for some reason 5 messages
wind gorge code:
[SOLVED] Roles not being added in older guild (not errors in console) 12 messages
wheat heath Hello everyone, I thought I'd make a post here in case anyone has an idea how to solve this issue. See below code. This...
Using discord.js with OpenAI API. Issues with Discord 3 messages
shadow lichen Hey everyone, I am in need of some help with the OpenAIApi. I am using discord.js 14.8 and of course OpenAIApi and runni...
why i kept getting 'Cannot read properties of null (reading 'cache'' 13 messages
fading jay const guild = bot.guilds.cache.get(message.guild.id); if (!guild) { console.log(`${b...
removing nickname 9 messages
final kraken Hi, my bot has a whitelist system, and when the user is approved, it changes the nickname, but seconds later the nicknam...
Autocomplete case sensitive 12 messages
median frost How can I do it so that my autocomplete command is not case sensitive?
Whats is the problem in my event MessageCreate? 6 messages
versed plover I'm trying to make my bot respond to a mention with MessageCreate, but it responds twice with the same thing, what could...
Trying to count number of reactions from user but only counts bots reaction count 3 messages
vast cloud My code doesn't count the user reaction only the bot I've tried a lot of things and nothing is working. I've got the Gui...
Trying to count number of reactions from user but only counts bots reaction count 7 messages
vast cloud Having issues with counting number of reactions from a user
is it possible to have PermissionFlagsBits on subcommands? 2 messages
formal snow is it possible to have .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild) on subcommands?
addChoices option limit? 3 messages
soft basin I've seen some bots have over 25 choices in a command, how is this possible? i mean, it doesn't show all options at once...
autocomplete on interaction create 4 messages
limpid vector I'm trying to add a command that uses autocomplete, i think it's not working because of this code. how can i make it so ...
Bot is not responding to interaction 31 messages
balmy rapids Hello I think this may related to node.js but not discord.js but here is the problem I have two folders (music, utils) ...
Counting Command help 4 messages
wind gorge Hey here is my code const Discord = require('discord.js'); const { Client, Intents } = require('discord.js'); const cl...
Error [ShardingReadyTimeout]: Shard 0's Client took too long to become ready. 42 messages
opaque rapids I've been trying to get the Sharding process going (following the discordjs.guide tutorial) but it keeps giving me a tim...
I want to send a message to a channel with filters 65 messages
stone ginkgo As in the title says, I want to send a message (with my bot obv) to a channel that have filters on it. The only way to s...
How can i make a forum channel with a bot and create 3 threads inside it with one command ? 2 messages
frigid raft the same thing as in the title
Can't access client in another API's code 5 messages
velvet breach So... I have some listener of another API (doesn't return anything discord related), I want to get the discord client wh...
Either member or seller is undefined!! 10 messages
mossy folio Am so lost rn. I am not getting an error because I adding debugging into my code BUT it is not helping me figure this o...
How do i filter this 8 messages
sick zephyr ``` client.guilds.cache.map(guild => guild.name + " - " + guild.memberCount + " members."); ``` how do i filter this to ...
slash commands in main file 10 messages
limpid vector is it possible to set up slash commands all in the main file? I want my discord bot to be contained in one file for reas...
Collecting messages from a channel 7 messages
distant pulsar Hello, I'm just starting to use the discord.js (V14) and I'm trying to build a chatbot so I was looking at how to do tha...
can you make slash commands with a slash command 5 messages
sonic pelican Genuine question.
Issues installing @discordjs/opus on ubuntu server 3 messages
marsh furnace Im having some problems installing @discordjs/opus Ive attached a screenshot of what it says
998292157150535700
Is there a way I can allow someone to upload a file to my bot outside of a slash command option? 21 messages
crystal crag I'm trying to make an interactive setup of something that involves uploading a file. Previously, it has been done throug...
threads.fetchArchived({fetchAll: true}) is misleading 4 messages
rare wasp Looking at the source code for fetch archived, it only makes one call to the Discord API even if fetch all is set to tru...