fix: hopefully fixed the crash heeheheheheha again
This commit is contained in:
parent
ce331b5720
commit
fa072fd9bf
1 changed files with 1 additions and 4 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue