python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
cannot read the properties of undefined 'highest'
I want to check if the mentioned member role is in the same position as the bot or higher, but I am getting an error:
TypeError: Cannot read properties of undefined (reading 'highest')
My code:
...
Pooyan
Votes: 0
Answers: 3
How can I edit a config file in discord.js?
How can I edit a config.json file? I tried
const config = require("./config.json");
config.set("status", "online");
but it doesn't work.
Penguiiiiin
Votes: 0
Answers: 1
Discord.JS property 'send' does not exist on type 'AnyChannel'
I'm trying to send a message when a Discord bot is ready and more generally without waiting for a message or an interaction.
I tried 2 ways to do so:
client.guilds.cache
.find((guild) => guild....
Théo
Votes: 0
Answers: 0
discord.js | Bot doesn't tag my channel(undefined)
I made a purge/clear command for my discord bot, but when I do /purge amount: (amount), it works fine, but the bot replies with 🗑️ (amount) messages were deleted from undefined., which should be 🗑️ ...
Solid Coder
Votes: 0
Answers: 1