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