djs-questions

13317 threads · Page 18 of 267

Which errors does discord.js handle and which does it let bubble up? 151 messages
cunning elbow To give one example, it looks like discord.js handles [`NotAuthenticated`](<https://github.com/discordjs/discord.js/blob...
node
How can i check if a message have an attachment? 9 messages
buoyant bramble And optionally, how can i check if the message is a text-file (and not something like pictures or videos)?
An advanced bot for Discord and I want to eventually mimic it for whats app 16 messages
red coral Its totally going to disrupt the real estate market, again assuming Im able to get it to do what Im after. Locating and ...
deno @discordjs package node
Can someone answer my question about oauth2? 6 messages
gleaming sand I'm making a system to recover members, is it recommended to refresh the access_token from time to time or only when I'm...
node
idiot can't figure out how a (ts) bot project should look like 32 messages
glacial geode I have attempted to create a bot with the creator however the project structure it produces varies widely from what is i...
I cannot see my commands 7 messages
sullen merlin My index.js is: ``` const { Client, GatewayIntentBits, Collection } = require('discord.js'); const fs = require('fs'); c...
Its not possible to reuse / edit the same reply over and over again? 12 messages
daring sinew I reply to an initial Chatinput command with Ephemeral reply including an actionrow with interactive components. After ...
node @discordjs package
HOW I CAN DISABLE CACHE? 6 messages
lethal current I want disable cache: All. Оnly the ones I use
node
Internal Server Error 5 messages
rugged goblet Hello everyone. I am developing an anti-nuke bot. When I try to block the nuke bot, I get an error ```HTTPError: Interna...
node
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?
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?
node
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. 109 messages
acoustic glade I want to clear the select menu options when the bot logs the role to the DB.
node
GuildMemberAdd event not working. 9 messages
kindred wagon ```JS const { Events } = require('discord.js'); const fs = require("fs"); module.exports = { name: Events.GuildMemb...
node
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 ...
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?
node
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...
RPC
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...
node
(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...
node
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...
node
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...
node
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('...
node
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...
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...
bun
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
node
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...
node @discordjs package
Help me 7 messages
lofty sierra Why the depencies is installed
node
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...
node
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 ...
node
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...
node
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 24 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...
node @discordjs package
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...
node
How to make a new line in app command string option type. 6 messages
kindred wagon ```JS .addStringOption((option) => option .setName('description') .setDescription('s...
node
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...
node
levelcard canvacord problem 12 messages
pallid atlas Its said Error: Avatar is required. you guys know any issue?
node
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 ...
@discordjs package
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...
node
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 ...
node
Button and Modals on DMs 7 messages
node
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.
node @discordjs package