Closed makarasty closed 2 years ago
Make sure you have the latest version of this bot (v14) and also make sure that the MESSAGE_CONTENT
intent is enabled in developer portal (this is happened with me too when I was testing the update) and also thanx for the embed error report.
Make sure you have the latest version of this bot (v14) and also make sure that the
MESSAGE_CONTENT
intent is enabled in developer portal (this is happened with me too when I was testing the update) and also thanx for the embed error report.
I have the latest version of discord.js installed
These packages will be removed in the coming updates. Have you checked the message intent?
I just used the help command, Yes, it's on.
my opinion the error is that the bot can not find the command.enabled
because it is undefined
, as a solution you can try to set a value
Just check the intents bit value. It should same as in the ss. If it still doesn't work, instead of adding values in each command, just make it to check if command.enabled
is undefined or not. Like:
if (command.enabled !== undefined || command.enabled !== "") {
// code
}
This is easier than adding value to each command imo.
It's strange...
Try using the bot my mentioning the bot instead of using the prefix. Like @Bothelp
. That will make sure whether the bot can access the message content or not
it works! Is this prefix bad?
So yes, its an issue with the message content. You bot is not able to access the message content. Can you show the intents bit number from the index.js file?
I didn't change anything.
const client = new Client({ allowedMentions: { parse: ["users", "roles"] }, intents: 47007 });
i think the message content intent is not enabled
thats all I can think of
thats all I can think of
But
thats strange... it should work fine...
Another bot on discord 12 works
I'm waiting for a fix, but I don't understand what the problem is.
find the intent bit value that suits your bot: https://discord-intents-calculator.vercel.app/
find the intent bit value that suits your bot: https://discord-intents-calculator.vercel.app/
I changed this value to 3276799, it did nothing
last thing i can say... try using a different bot
The other bot works
i guess the previous bot didn't like the code....
i guess the previous bot didn't like the code....
I'm interested in your bot, it's great
dont know what is wrong..... why it isnt working.....
dont know what is wrong..... why it isnt working.....
I must be cursed, not a single bot I tried to use does not work properly 😞
try using the code on a different bot ( a different bot on developer portal) .. and enable the intents (all of them) and try using the code with that.. that might work
try using the code on a different bot ( a different bot on developer portal) .. and enable the intents (all of them) and try using the code with that.. that might work
I tried changing the bot's token to a different one, but it did nothing.
okay, lets try this: use the intent flags instead of bit value...
const client = new Client({
allowedMentions: { parse: ["users", "roles"] },
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildBans,
GatewayIntentBits.GuildsVoiceStates,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildWebhooks,
GatewayIntentBits.GuildMessageReactions
]
});
okay, lets try this: use the intent flags instead of bit value...
const client = new Client({ allowedMentions: { parse: ["users", "roles"] }, intents: 47007 });
It didn't give any results, I think we're looking in the wrong place
okay, lets try this: use the intent flags instead of bit value...
const client = new Client({ allowedMentions: { parse: ["users", "roles"] }, intents: 47007 });
It didn't give any results, I think we're looking in the wrong place
just updated the message
I changed GatewayIntentBits.GuildsVoiceStates
, to GatewayIntentBits.GuildVoiceStates
Because it didn't work
but the error is the same
The bot sees the messages
bruh.. change the prefix to ! or any else
maybe the problem is in these lines because they cannot measure the command.enabled
😲😲😲😲😲😲😲😲😲😲😲😲😲😲😲
lol... im dumb af... im done
it seems that the bot just does not know how to work with other prefixes
i dont think so
But the other prefixes don't work for me
please edit the command.js file... refer to this... this should fix the prefix issue
IT WORKS 😳
Thanks dude, you're the best.
Thanks dude, you're the best.
np broo... enjoy your bot :heart:
also i forgot to mention, activity commands arent working for now as the package hasnt been update to use djs v14. I'll wait a week or two, if gets the update, its fine else i'll update the code...
To hide some errors, you can use the argument
--trace-warning
or--trace-warnings
, but it does not solve the problem, the bot does not read the command files, so it does not respond to commands.edited: splash commands work fine
strange but if you print out the client.commands, all the commands are there