Problem with the message.content in discord.js v14.15.3
I was creating a Discord Bot and I faced an issue when I tried to create an messageCreate
event listner to console.log the message content.
Undefined JavaScript error with discord.js V14
I am working on a user context menu command to get the users info. One of the parts of it is getting their roles in the discord and adding a badge on the embed.. except it’s giving me the error ‘Cannot read properties of undefined (reading ‘cache’s
How to know whether a discord server has community enabled or not
I am using Discord.js V14 and want to know how to know whether a discord server has community enabled or not. For example- If a discord server has community enabled, the bot will reply with something. Thanks in advance!
TypeError: Cannot read properties of null (reading ‘id’)
So, I’m trying to make a discord forums moderating bot. I honestly have no idea how the new discord.js works? Last time i coded a discord bot was like 2 yrs ago and I’m using the same functions as my old bot, but now its not working
Discord js use Header in Embed
I want to use Headers in an embed. Like how you can make the font bigger when using a # in chat.
Discord.js: slash command not registering
I want to register a slash command using discord.js, I know it takes so long since I have already made some, but this time the bot have been online for 4 ~ 5 hours and still I can’t use the command even though I can see it in the interactions tab in settings.
How to get all channel messages with discord bot in javascript
I have the discord getting started example project running and working, so that I can run /test
and it gives a working response. I also created a new command /getmessages
, which now just returns a string.
MessageEmbed is not a consturcotr but is a construtcor
Fehler
[SYSTEM] BOT ONLINE!
node:events:497
throw er; // Unhandled ‘error’ event
^
DiscordAPI Missing Access when trying to remove members from a thread
I’m working on a feature for my bot that allows server moderators to remove all users from a given thread who have not sent a single message in that thread in the past 30 days. I have everything working so far, up to generating a list of ThreadMember objects representing the users I want to kick. However, when I call the remove() function on these objects, I’m met with:
How to get a user username by a Discord?
I’m trying to get a user Discord username by a Discord bot using Discord.js V14.