fix: trying to fix stuff

This commit is contained in:
Ale 2023-09-05 19:23:53 +02:00
parent 6574d2af48
commit 634b16bd35
No known key found for this signature in database
GPG key ID: 284AFB134BB2E07D

View file

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