fix: hopefully fixed the crash heeheheheheha again

This commit is contained in:
Ale 2023-09-07 15:41:29 +02:00
parent ce331b5720
commit fa072fd9bf
No known key found for this signature in database
GPG key ID: 284AFB134BB2E07D

View file

@ -14,10 +14,7 @@ client.on("messageCreate", async (message: Message) => {
try{if (!message.author) {await client.users.fetch(message.authorId)} } try{if (!message.author) {await client.users.fetch(message.authorId)} }
catch(e){console.log(e)} catch(e){console.log(e)}
try{if (!message.content) {await client.messages.fetch(message.id)}} if (message.content === undefined) {return}
catch(e){console.log(e)}
if (message === undefined) {return}
if (message.author?.bot) {} if (message.author?.bot) {}
else { else {
if (message.content.startsWith(config.prefix)) { if (message.content.startsWith(config.prefix)) {