djs-questions
9202 threads · Page 135 of 185
cyan forum
hey folks can anyone check this code if I run the setup commmand and choose options voice and default only the category ...
drowsy crest
Has anybody else experienced a similar issue where their traditionally sharded bot gets stuck in a shard reconnect and b...
regal sluice
Attached below is my code, you enter a roblox username and it fetches the ID, however it only works once. Then gives the...
south charm
help discrod api error 20012
dusk sable
Current Code:
```javascript
client.on('threadCreate', async (thread) => {
if (thread.parent.type === ChannelType.Gui...
fierce iron
I'm getting this error on 14.10 when trying to send interaction.reply() with embed and buttons. I'm not sure which objec...
dusty thicket
Is it possible that the "side" option only appears for the user if he chooses the "Coinflip" choice? Like if he chooses ...
dense kraken
```js
const channels = await guild.channels.fetch()
channels.forEach((channel) =...
limber dock
Some time between 11 hours ago and 30 minutes ago, I started getting this error from my CI. I didn't change any of my di...
hallow briar
```js
module.exports = {
data: new SlashCommandBuilder()
.setName('hxbuy')
.setDescription('This is used by ...
hoary trail
How can I use proxies while using djs for example when i login my bot i want it to be under my proxy
zinc snow
In my client class I have the following code:
```js
getInvite(){
return this.generateInvite({
scopes...
strange wraith
Hi, the attachment is sending in the interaction channel and not logging channel. Anyone know why?
orchid trail
is there a way to make autocomplete longer than just 25 options?
dim violet
Can sharding to 2 different physical servers help against downtime, how does it work? When a shard goes offline what hap...
snow anchor
I'm suddenly getting a lot of console.error messages pouring in, for actions on Message and TextChannel objects, which a...
strange wraith
Hi, I require some help as this code doesn't work.
jovial nacelle
Is there a way to prevent discord from caching autocomplete results? I have `/command choice-a:foo, choice-b:bar` where ...
ionic sky
I'm having problems with the bot's permissions, like, the position is allowed to send attachments, but the channel does ...
junior widget
```const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
const { teamchanegeChannelID, CCroelId } ...
rancid current
Hi, Good day, I keep getting this error or an interaction doesn't exist error when they do exist.
and i am deferring the...
ocean canyon
Hello guys, can someone let me know how to get a mentioned user username?
Trying to make a bank bot but I'm not able to...
drowsy crest
How can I check if a message still exists after I've gotten the message? I keep getting Unknown Message errors because I...
fresh compass
hihi
my bot isn't working and there seems to be an issue with the code? the bot is still offline and the link to the co...
ocean canyon
Hello guys, I'm trying to make a simple bot to reply to a simple slash command but I'm getting an error that says: "
Typ...
tender flame
Hi guys, I have such a problem, I'm outputting information from the Overwatch 2 game according to the data entered throu...
fallen dome
message.webhookId holds a value even if no message is sent via webhook on the server..how is this possible?
frosty relic
```js
const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
data: new Slas...
frosty relic
```js
const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
data: new Slas...
open nova
In my user-info commands i have number what is that ??
limber meadow
Whenever I run a command, it gives me this error.
hallow briar
What is wrong here?
copper thorn
here is my code:
```import { Client } from "discord.js";
import { Commands } from "../Commands";
export default (clien...
radiant knot
I'm using discord.js V14.9, and my bot shuts down without any exceptions in 2~3mins.
My all code works nice, and when bo...
pliant wing
```js
let prevMessages = await message.channel.messages.fetch({ limit: 15 });
prevMessages.reverse();
...
crystal lark
after years of not coding i have finnaly come back and did some coding but when i tried to use my command handler it doe...
subtle sandal
I get this error randomly and the bot crashes
```js
Error [TypeError]: Cannot read properties of null (reading 'id')
...
empty path
I using slash command to delete database and I have a reaction collector for my user to confirm that they want to delete...
hardy marsh
```js
const {getMatch} = require('../utils/chess-data')
const {redifMatch} = require('../utils/createCanvas')
const { Ap...
lofty gyro
Info please
mellow frigate
In a userSelectMenu is there a way to tell if a user was added or removed from the selected users
fallen dome
Why AuditLogEntry.executor is null when my bot delete a webhook?
fickle brook
```ts
export default function (message: Message) {
if (message.content.toLowerCase().includes("discord.gg/")) {
...
scarlet geyser
Two questions:
Is djs internal sharding good as the sharding manager or not? What are the differences?
Is it possible t...
vale oxide
It just doesn't change the type for me...
https://media.discordapp.net/attachments/824411059443204127/11019428593740145...
past obsidian
I'm tried this but its returning me stuff from other channels on that guild
```js
const $channel = await client.channel...
wind needle
yo, why doesn’t my bot write anything when I do !test ? Here’s my code:
```const Discord = require("discord.js");
const...
tacit osprey
Im coding a command which update a user from a database, it returns an embed message with user's information and it have...
empty path
Why my slash command option dont have getSubcommand or getSubcommandGroup, etc...
sudden turtle
Is this code returns true if the member has permission on channel which the message sent?