djs-questions
9202 threads · Page 161 of 185
wraith veldt
Hello,
I followed the guide on https://discordjs.guide/ (really nice) but I'm getting an error with the bot when using...
manic flame
I have created a function called newMemberThreads and run it every 2 minutes from ready.ts to create a thread for new me...
molten moth
I'm trying to cover some edge cases of my project, one of those being that the message is deleted by a moderator before ...
fallen gulch
```const {SlashCommandBuilder,EmbedBuilder,PermissionFlagsBits,} = require("discord.js");
module.exports = {
da...
waxen galleon
Hello I think there is a issue with emojis creations on guilds
Code: https://i.imgur.com/9Euwv89.png
Console output: ht...
mental goblet
When I try to generate server booster logs, I try to use Events.GuildMemberBoost, But it is not available in the autocom...
winged sequoia
```client.on('ready', () => {
client.guilds.cache.forEach(guild => {
if (guild.name === "Server Name") {
...
minor cloak
i want to make many commands but slash commands has a limit
Can i keep making prefix commands? Thanks in advance
livid jolt
Heyy I come to expose you one of my problem... I finished to migrate my bot to the commands / there can and there is sti...
patent panther
i looked through the discord-api-types and ive found an Enum named GatewayDispatchEvents which is similar to what im loo...
serene walrus
I have an API endpoint which expects a guild id url param to be passed in, but this endpoint is also used for DMs where ...
crisp valley
I am unable to get a reaction on the bot message because of an error that says "TypeError: interaction.userpoll.then is ...
mossy gale
I couldn't *quite* find what I was looking for on google so I figured I'd ask here. I want to get the rich presence of a...
young solstice
hi, can i find groups and subcommands from the SlasHCommandBuilder instance?
like doing builder.groups.get(groupName) or...
icy hearth
lets say i have an embed with the title hello like ```js
const ok = new EmbedBuilder()
.setTitle('Hello')
.s...
waxen galleon
Hello, I'm actually trying to make a shard list but thie broadcastEval don't like what I did in 2020 so can someone guid...
orchid hull
self.onError(new RequestAbortedError())
^
RequestAbortedError [AbortError]: Request aborted
at abo...
fierce fjord
I created a handler that loads the commands and executes the run function when they are called, nothing unusual. The pro...
cold sand
Basically title. Is there something to do like that?
orchid hull
throw new HTTPError(error.message, error.constructor.name, error.status, request);
^
HTTPError [AbortErro...
exotic summit
```js
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
....
young solstice
hello, getSubcommand and getSubcommandGroup used to be here, have they changed?
lunar canopy
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
...
random vine
I want to find a player in a client by id and give a role to him.
the pic is error and below is the code
How can I get...
vagrant canyon
Does the verify member have any use ?
random vine
I want to remove UserOption When StringOption's choice is all
I don't know how to remove below part
```javascript
.addU...
random vine
Here's my code
```javascript
module.exports = {
developer: true,
data: new SlashCommandBuilder()
.s...
sudden moss
Hi, good night! I wanted to know if need the presence intent to count the total number of members (Getting it from the c...
keen berry
client.on('voiceStateUpdate', async (oldState, newState) => {
if (oldState.channelID !== 753116041940435074 && newStat...
random vine
I want to know when user create a link
oblique shell
How do I fetch a user that's not in the same server as my bot? This is for a command that will display an embed with the...
random vine
I'm trying to like below
```js
module.exports = {
name: "guildMemberRemove",
once: false,
execute(member, ...
pale yoke
Hi, I've been trying all day to solve this error that is due to the attempts, but I couldn't. I'm still trying to solve ...
kindred relic
Wondering if there is a new event we can listen to for when a new member completes the new onboarding.
Also wondering a...
hexed solar
How can I get all members with a role in a larger guild.
I know you have to use guild.members.fetch however that times ...
leaden tulip
I somehow fail to write something performant to sort the channels of a category alphabetically by name. Has someone some...
quaint mist
is there a ESM version of the docs/examples available some where?
all the examples seems to be in common js
graceful lodge
So I just sharded my bot and was playing around with `client.broadcastEval` and it gives me this.
got a channelCreate.js...
inner meadow
Hey i create a command where people can interact with button but when they put two times the commands and interact with ...
meager zenith
Hi everyone,
I'm trying to read all commands from my command's folder but I can't seem to get it to work.
```js
const...
random vine
```js
const {TOKEN} = require("./config.json")
client.login(TOKEN)
```
I JUST DONT GET IT why this error has been occu...
tribal root
Hey does anyone know how i can fix this issue?
exec error: Error: Command failed: pm2 restart index.js
/bin/sh: 1: pm2:...
pearl lynx
prob weird question, but d.js is back end, right?
proven lintel
I am trying to get some options from a SubCommand I created, following the this guide: https://discordjs.guide/slash-com...
graceful oasis
Hey guys! How can that background behind the values that is shown on the picture?
pulsar sluice
Hi, i want learn discord js, what is the best option?
Read docs
YouTube vidéo ?
fierce iris
So i'm having this issue, but is probably due to me not being able to understand how commands work, or maybe is somethin...
pine cairn
I've been banging my head around what i'm missing. I'm new and following the discord.guide and i'm at event handlers. Wi...
dim flame
First off I create my client using:
`const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAG...
blazing karma
Hi all,
I'm working on two commands: /start and /stop that will allow me to toggle specific feature of my bot on and off...