fix: Crash p2
This commit is contained in:
parent
6dc0f3ca8d
commit
6574d2af48
1 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,10 @@ client.on("ready", async () => {
|
|||
});
|
||||
|
||||
client.on("messageCreate", async (message: Message) => {
|
||||
if (message.author.bot) {}
|
||||
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)) {
|
||||
commandHandler(message, config.prefix);
|
||||
|
|
Loading…
Reference in a new issue