djs-questions

9202 threads · Page 17 of 185

Multi language Bot 20 messages
lone shore Hey everyone, I’m working on a Discord bot with multiple commands that supports multiple languages. Each server can set ...
subtexts no work in descriptions 13 messages
supple urchin is it just me or does subtext (-#) not work in descriptions?
ERROR: Cannot message this thread until after the post author has sent an initial message 1 messages
lucid parrot I'm trying to send a message right after a thread creation. But sometimes i receive this error: `Error sending message...
My bot does not detect dm messages 9 messages
coral slate I am using discord.js v14, it only detects guild messages, how can I detect dm messages?
1150878580193116250
discord.js won't play nice with ES:LINT 44 messages
hollow holly ``` ./node_modules/discord.js/typings/index.d.ts:1301:21 Type error: Type parameter declaration expected. 1299 | *...
Clear the select menu options. 108 messages
acoustic glade I want to clear the select menu options when the bot logs the role to the DB.
1150878580193116250
GuildMemberAdd event not working. 9 messages
kindred wagon ```JS const { Events } = require('discord.js'); const fs = require("fs"); module.exports = { name: Events.GuildMemb...
1150878580193116250
help for discord sdk 2 messages
rotund ermine there is Fetching a channel using the SDK on discord dev docs i was just using that code but then channel or avatar is ...
User inviting and user roles 1 messages
haughty stream Hi guys I have a website today where I sell a product, and I want to set up a channel on discord for support, but I wou...
1150878580193116250
Hello d, how can I make a stateless bot like the js bot? 8 messages
trail tundra Hello d, how can I make a stateless bot like the js bot?
1150878580193116250
basic setup with djs rpc 8 messages
slate flax hey. i'm new to typescript (not programming) so bear with me i'm trying to get setup with `discord-rpc` but i'm running...
1003448629866020986
Trying to update channel name every min for utc time, updates once but stops updateing 6 messages
kindred wagon *sorry for long title* I am trying to make a UTC time channel in my discord server (this is for a game rise of kingdoms...
1150878580193116250
(solved) Strange permissions error inside discordjs that I cant catch and cant replicate? 71 messages
mint crater Once in a while I will receive a strange error from discordjs that will crash my entire bot, and a try/catch block in th...
1150878580193116250
Channel id when bot joins a guild 8 messages
crisp bone Hi, I am trying to send a message to a channel when the bot joins a guild. I know how to send it to a system channel, bu...
1150878580193116250
Cache Updating 7 messages
fathom lion I am trying to confirm if running `await guild.members.fetch()` will keep the member cache up to date for a particular g...
Bot invited via User App or Server Invite? 5 messages
buoyant thunder Is it possible to get if the bot was invited via User App or added to a server?
EmbedBuilder thumbnail issue 14 messages
hallow pebble My bot scrapes data from pages on archiveofourown.org and uses it to build an embed. Recent changes to their server str...
1150878580193116250
How do I send a message to a channel by channel id 4 messages
kindred wagon ```JS const channel = interaction.client.channels.fetch('1345305762481569822') if (interaction.options.getUser('...
1150878580193116250
need help, my bot seems to turn on & go online but no response from it with anything. 5 messages
faint pasture ```js import { Client, Events, GatewayIntentBits } from 'discord.js'; const client = new Client({ intents: [GatewayInte...
Does discord check command permission? 1 messages
stuck quiver Does discord check command permission before the command be executed when i set on SlashCommandBuilder object?
Logs not working 12 messages
torpid horizon I am still kind of new to coding so please do not judge on that fact, but I've tried multiple things (events & audit log...
Bot Emojis on embeds 20 messages
worthy spruce I've added a few emojis to my bot on the Dev Portal. When I use them (`<a:name:id>`) on a regular message like interac...
1150878498534199426
I want to get the status of a member not the actual presence what am i doing wrong? 4 messages
minor heron ```js const { EmbedBuilder, ChannelType, GuildMember, ActivityType } = require('discord.js'); const guildSchema = requir...
Doesn't work 4 messages
1150878580193116250
Discord Move Logs 14 messages
kind steeple Does anyone know if it's possible to create a bot that logs when a user is moved from one voice channel to another? I w...
1150878580193116250 998292157150535700
Help me 7 messages
lofty sierra Why the depencies is installed
1150878580193116250
405 Method Not Allowed 1 messages
blazing slate Getting this error when trying to upload new emojis. ``` 5:08:22 AM Failed to upload emoji "i_user": DiscordAPIErr...
998292157150535700 1150878580193116250
Bot doesnt register new / Commands 21 messages
light dove Hello, I am starting with programming in Discord.js, and I was following the Docs, but suddenly new commands wouldn't ap...
1150878580193116250
How to use .setChoices/.addChoices. SlashCommandBuilder 4 messages
kindred wagon context i am making a embed command, i am receiving this error for each of my options ``` ValidationError: Expected ...
1150878580193116250
Bot can't give the roles under 43 messages
rancid falcon My bot can't give roles even tho the bot got the correct permissions. The bot's role is higher than the role it will pro...
1150878580193116250
Problem with running scripts being disabled 7 messages
lilac portal I copy pasted everything that the internet said and then it said that.
Problem with channel fetching 23 messages
obtuse raft Hello. So Ive been fighting with this for a month now and I don't know where issue is, so im trying my luck here. I ha...
1150878580193116250 998292157150535700
Seems like an internal Discord error... 4 messages
fading plank I've been looking for "this.client.channels._add" in my code everywhere and I can't find it. It seems like it's a discor...
Auto-moderation 1.5.4 6 messages
lofty sierra I don't know what the problem is I have spammed both messages and links but it does not seem to block any of these attem...
1150878580193116250
How to make a new line in app command string option type. 6 messages
kindred wagon ```JS .addStringOption((option) => option .setName('description') .setDescription('s...
1150878580193116250
bot cant send custom emojis 23 messages
bright bane i have this emoji in the emojis tab for my bot. i have tried a bunch of stuff but nothing is working i tried `<:emoji:id...
1150878580193116250
levelcard canvacord problem 12 messages
pallid atlas Its said Error: Avatar is required. you guys know any issue?
1150878580193116250
Looking for a multi-server box example to referance 3 messages
onyx meteor Basically as the title says, I'm trying to find an example of a discord bot that is designed for multiple servers that I...
Image dimensions 5 messages
primal tundra I noticed Discord pushed a change to how images are viewed so you can now see the dimensions in the app itself. Is this ...
998292157150535700
Inconsistent API Response ? 5 messages
sour phoenix I have an Bot who should create an text channel Before creating the Channel, I check if the Bot has permission on the g...
1150878580193116250
Replying to APPLICATION_AUTHORIZED event on a webhook 5 messages
cobalt pike I've built a small next.js-based application solely for the purpose of sending welcome messages when my bot is added to ...
1150878580193116250
Interaction Select Menu 48 messages
proper otter Hello i have some code and i have 2 subcommands /setting set and /settings disable First step after selecting one of the...
Message Object sending ephemeral message 17 messages
polar pumice In Typescript, I am trying to use Message Object to send ephemeral message but it seems like that is not possible Is th...
form channel returning null instead of the channel object 15 messages
fierce violet I ran into this weird problem where the channel object would return null.
1150878580193116250 998292157150535700
ValidationError: Expected the value to be a string or number 7 messages
marsh walrus Greetings, I recently got a `ValidationError` saying `Expected the value to be a string or number`. Below is my code. `...
1150878580193116250
Application Commands API does not return localization 14 messages
daring sinew Is this intended ? ```typescript await rest.get(Routes.applicationCommands(applicationId)) ``` leaves `descriptionLoc...
1150878580193116250
Discord bot ( im new to coding bots) 55 messages
tidal girder I got some discord bot off github, and updated some coe, i got it on a local host and the only tyhing that seems to work...
install error 9 messages
crystal forge Hello. When I write `pnpm install --frozen-lockfile` ([contributing](https://github.com/discordjs/discord.js/blob/main/....
1150878580193116250
Help me 18 messages
lofty sierra I have structured a complete discord bot but I have problems with tickets it does not give me any errors but it does not...
1150878580193116250
Need help with logging system 18 messages
grave siren So I'm working on a bot called "Neonova" that I have made with a logging system built in and I want to log channel permi...
1150878580193116250