djs-questions

9202 threads · Page 103 of 185

DiscordJS & Discords Voice Notes 12 messages
vale burrow I was wondering if it’s possible for bots to detect voice notes, if so, my initial plan is to make some sort of like His...
Is it possible to fetch a message after the message you fetched by id 3 messages
mint rivet title
Direct message not being sent 14 messages
terse remnant **The bot is supposed to send a direct message to the user if he used a blacklisted word in his message. I’m using disco...
SlashCommandHandler - Not answering 282 messages
hallow briar So I've created the deploy-commands & slashcommandhandler from Discord.Js guide docs, my commands do appear when I use /...
Twitch 6 messages
inner matrix Hello I would like to know how to make a live twitch announcement system in discord.js v14 version? If someone has tips ...
Error using slashcommandbuilder 3 messages
hallow briar I installed the slashcommandbuilder with the DJS Docs Guide
Best way to handle ready event failure 17 messages
manic vault Recently my bot had a lot of downtime because it auto-restarted but never got properly readied; it seems it silently err...
discord.js ignores select menu input 32 messages
wanton quiver ```js const { Events, EmbedBuilder, ActionRowBuilder, StringSelectMenuOptionBuilder, StringSelectMenuBuilder, ComponentT...
Add role to user 35 messages
random vine Hey guys, im trying to add role to user but it didn't work ```js const guild = client.guilds.cache.get("107854...
Error checking member role permissions 7 messages
night hemlock ## Error ``` if (member.roles.highest.position >= interaction.member.roles.highest.position) { ...
Is it possible to set a "global" bot status instead of a per-shard status? 2 messages
halcyon tartan Essentially, I just want to be able to update the status once for the entire bot. Since I grab data from an API, and an ...
Best way to get userIds in a role without hitting API limit Hourly 5 messages
lapis spoke I have to get all the userIDs that have a role in a guild on an Hourly basis. It only returns the members in cache that ...
Does anyone know what it is every time I delete it, It fills me up on its own 2 messages
coral blade .
Trying to detect if a shard goes offline 1 messages
fading mason I am trying to make it so on shardcreate it gets the client.ws.ping or client.ws.status. The issue is that when I discon...
InteractionResponse#awaitMessageComponent is not working with modal 19 messages
dense lodge <https://gist.github.com/danthonywalker/c369f391b8524388866ac9a74f4e9e44> So the flow goes like this 1) `showQuestionMo...
How do I remove a role from a member 3 messages
wintry star I've been able to add a role this whole time. But I can't seem to remove it. It always gives me an error, says I don't h...
More concise way to edit sent embeds 7 messages
toxic bridge I am currently dealing editing the fields of an existing embed as a reply, where I'm only changing the fields and not th...
How do I send Discord Embed? 8 messages
grand pier I have a code that sends Discord Embed however does not see the MessageEmbed namespace what could be wrong? ```js // Imp...
How do I get the bot to respond to DM messages that are written to it from the user? 33 messages
grand pier I still can't find an example where there is an event that would trigger whenever a user writes a message to a bot in th...
select menu emoji 17 messages
bleak dew i don't understand this error, i added emoji but still got error !
998292157150535700
Can't Disable EmbedBuilder Validators 23 messages
viscid zinc I'm still getting validation errors for EmbedBuilder after using disableValidators()
Best way to take a second argument for slash commands? 21 messages
drifting apex It pretty much is all explained in the title. I have working slash commands, but I would like to take a second argument ...
Events vs Audit Logs 5 messages
onyx warren What is the preferred way to log actions happening in a guild ? For example if I want to log when a channel is created, ...
.setColor() doesn't work for me 11 messages
oak moth I'm using EmbedBuilder to .setColor("#3dfbff") and it's not working, I'll give you the code in one sec
peoples my bot, dont work. Event 'messageCreated' the bot return nothing 2 messages
valid grotto const { token } = require('./token.json'); const Discord = require('discord.js'); const client = new Discord.Client({ ...
How to get first message in thread/channel? 4 messages
sonic pike Tried different methods: ```typescript (await thread.messages.fetch()).last() // Goes back maybe 50 messages (await thr...
Message collector not working in thread 22 messages
sonic pike On discordjs 14.11.0. I cannot get a message collector to work in threads despite having no issue with other collectors ...
Typescript build failure 3 messages
whole vortex Hello, using Typescript 5.1.6 and a one-liner index.ts that imports (version 14.12.1) discord.js, I get two compiler err...
npm packages 7 messages
devout frost Are there an npm packages that I can use to improve my workflow?
Shards are dying and re spawning again nd again 4 messages
keen kiln Logs: ```console 8|Raiden Bot | [Raiden] Bot has been launched! 8|Raiden Bot | 16:48:38 >> [WS => Shard 1] First heart...
current discord.js version 6 messages
flint anvil whats the current discord.js version?
998292157150535700
Bots setting Vanity 7 messages
vale burrow Is it possible to use just an endpoint to set the vanity via a command on a bot, or is there a built in feature to djs t...
998292157150535700
unknown interaction when trying to defer interaction 10 messages
tame forum if deferring an interaction has a chance to fail how do i ensure that interactions are ALWAYS responded too?
No roles getting returned from interaction 7 messages
meager zenith I am trying to get role from a member on an interaction, but I get 0 roles returned while I have 3 roles assigned to mys...
Regex question 5 messages
rose field Would any one know the regex to detect hoisted names as well as unicode charectors names? I don't work with regex much s...
.setActivity not working for me 3 messages
halcyon pier ```js client.on('ready', () => { client.user.setActivity('activity', { type: ActivityType.Watching }); console.l...
Trying to create a game lobby of sorts 6 messages
silver pelican Hi, I'm trying to create a simple game with a discord bot and I want to have it create a sort of "game lobby" when the ...
create channel in another server when command ran in other server 5 messages
mint rivet i was wondering how i can run a command in one server and then create a channel in aonther server my dsicord bot is in
Very quick question 3 messages
deft heron How many .addStringOptions can be added in a single command
multiple creation 7 messages
fair bobcat Hello, I am creating a sports race manager and I am currently encountering a problem. When I create the first race ever...
Multiple création 1 messages
fair bobcat Hello, I am creating a sports race manager and I am currently encountering a problem. When I create the first race ever...
Typing issues with discord.js 4 messages
urban vale Having issues with the typings of discord.js on my TS project. ```ts node_modules/discord.js/typings/index.d.ts:1231:3 ...
Snipe Command 9 messages
dusk violet This is the command: https://pastebin.com/bjBsV6Qb This is in my index.js: ```js client.snipes = new Map() client.on('...
how to create a custom status for my bot 9 messages
I'm trying to create a collector but it doesn't work 41 messages
nimble wolf it is not getting past the `collector.on('collect', i => {` part
Check if a user have the permission to execute a command. 1 messages
keen jacinth Hello, I'm working on a ticket bot and I would like to have the same permissions for the close command and button. So I ...
Registering commands 105 messages
green quartz I need help with making the commands register
Panel command doesn't create the channel 53 messages
rare coral My panel command creates the panel but doesn't allow anyone to open a ticket when clicking on the button The console giv...
is structured.extend still a thing 6 messages
rustic sandal title
all online users 6 messages
hasty elk How to get number of online users?