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