fix: trying to fix stuff p3
This commit is contained in:
parent
fcb32abe6b
commit
14f8ad4580
1 changed files with 4 additions and 3 deletions
|
@ -11,11 +11,12 @@ client.on("ready", async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("messageCreate", async (message: Message) => {
|
client.on("messageCreate", async (message: Message) => {
|
||||||
try{if (!message.author){}} catch(e) { await client.users.fetch(message.authorId) }
|
try{if (!message.author) {await client.users.fetch(message.authorId)} }
|
||||||
|
catch(e){console.log(e)}
|
||||||
|
|
||||||
if (message.author?.bot) {}
|
if (message.author?.bot) {}
|
||||||
else {
|
else {
|
||||||
if (message.content.startsWith(config.prefix)) {
|
if (message?.content.startsWith(config.prefix)) {
|
||||||
commandHandler(message, config.prefix);
|
commandHandler(message, config.prefix);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue