Fixed an issue in cmd handler that broke everything.
This commit is contained in:
parent
b09f4ca31a
commit
75fe3064ab
6
start.js
6
start.js
|
@ -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
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Reference in New Issue