Fixed an issue in cmd handler that broke everything.

This commit is contained in:
Anthony M 2021-03-16 17:09:00 -05:00 committed by GitHub
parent b09f4ca31a
commit 75fe3064ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -72,11 +72,11 @@ client.on('message', message => {
if (!client.commands.has(command)) return;
try {
client.commands.get(command).execute(client, message, args);
client.commands.get(command).execute(client, message, args, Discord);
} catch (error) {
console.error
const embed = {
"title": "<:NyabotError:697145462347661412> **Well that happened...**",
"title": "<:AnitroxError:809651936563429416> **Well that happened...**",
"color": 13632027,
"footer": {
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
@ -89,7 +89,7 @@ client.on('message', message => {
},
{
"name": "Error Info",
"value": error.message
"value": error.stack
}
]
};