fix: trying to fix stuff p3

This commit is contained in:
Ale 2023-09-05 19:28:54 +02:00
parent fcb32abe6b
commit 14f8ad4580
No known key found for this signature in database
GPG key ID: 284AFB134BB2E07D

View file

@ -11,11 +11,12 @@ client.on("ready", async () => {
});
client.on("messageCreate", async (message: Message) => {
try{if (!message.author){}} catch(e) { await client.users.fetch(message.authorId) }
try{if (!message.author) {await client.users.fetch(message.authorId)} }
catch(e){console.log(e)}
if (message.author?.bot) {}
else {
if (message.content.startsWith(config.prefix)) {
if (message?.content.startsWith(config.prefix)) {
commandHandler(message, config.prefix);
}
else {