djs-questions

13317 threads · Page 105 of 267

.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?
@discordjs package
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...
@discordjs package
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?
globalName doesn't exist? 22 messages
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...
idk how to fix it 49 messages
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...
Developing a containerized full-stack application. Assistance requires knowledge on RBAC and CASL.js 6 messages
.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...
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
Registering commands 105 messages
green quartz I need help with making the commands register
Panel command doesn't create the channel 54 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?
Help me pls 2 messages
versed garden how to create /profile command like this that showing badges and username , orfile , banner ...
@discordjs package
In the GuildMemberRemove event, are the cached roles of the guild member all there? 4 messages
round citrus Do I have that guarantee that when the `GuildMemberRemove` event fires that the `<GuildMember>` from the parameter has a...
how can I load commands dynamically without require 15 messages
weak linden I want to use an async sqlite module but that requires to use import and I can't import files inside code with it
BitFieldInvalid 99 messages
shell sierra ```js const { Client, GatewayIntentBits, MessageEmbed } = require('discord.js'); const client = new Client({ intents: ...
Type error: cannot read properties of undefined 3 messages
shell sierra ```js const { Client, Intents, MessageEmbed } = require('discord.js'); const { REST } = require('@discordjs/rest'); cons...
I can't use permissionOverwrites methods 72 messages
coral coral Maybe i'm missing some required things.
Custom 4 stats 21 messages
wise oar hello, good evening everyone, I was programming my discord bot, and I wanted to know how custom 4 works, which is from ...
What is the correct way to allow my bot to join a voice channel? 2 messages
hybrid yoke im getting this error: TS error: TypeError: message.member.voice.channel.join is not a function at Client.<anonymous...
my bot doesnt respond when i input my command? 10 messages
hybrid yoke Here is my code, my bot doesnt seem to respond when i put "!hello" in chat, what can i do to fix this?
kick cmd err? 4 messages
sand hearth I finished the code of the kick command and in fact everything went well, I tried to execute the command again but now t...
Trade System 5 messages
I'm confused 11 messages
civic jolt So i am unsure if this is the right discord or place to ask but I'm new to making a discord bot. I have an embed but whe...
Create a player loop for a blackjack game 9 messages
toxic bridge Hi everyone! I'm currently implementing a game of blackjack in my bot, using an embed and buttons for the game informati...
SlashCommand Naming 2 messages
shut citrus Hello, I’m trying to add a sub command named "allowAdminBypass" im getting thrown an error saying it doesn’t pass the re...
@discordjs package
newPresence returns undefined inside presenceUpdate event 54 messages
lapis chasm # code ```client.on('presenceUpdate', async (oldPresence, newPresence) => { if (newPresence.member.presence.statu...
UserInfo js v12 10 messages
raw fern Hello, I would like to make a userinfo command, so I program it in js v12, does anyone know how I set the server entry d...
I get an error about the interaction 11 messages
gray zinc Im trying to make my first discord bot. Currently ive got this `// commands/ping.js module.exports = { data: { ...
Is it possible to add "streaming" text feature to text via Discord.js? Would that be allowed? 4 messages
proper gate ChatGPT (and other models) have these feature called "Streaming", where it shows the text its generating as if its being...
How to find a specific word in a sentence 2 messages
halcyon pier As the title says I am trying to find a specific word in a sentence e.g the fox was walking. I want to pull the word fox...
How to make it auto stop 22 messages
shell sierra ```js const { Client, GatewayIntentBits } = require('discord.js'); const client = new Client({ intents: [ Gateway...
help 16 messages
opaque kraken let guildArray = await process.oauth.getUserGuilds(data.access_token); It returns me with the error: `401 Unauthorized ...
Creation of a selection menu 13 messages
hexed escarp Good morning. To accompany my embed, I want to add a selection menu that retrieves the values ​​stored in my database an...