Fixed some remaining changes from the transition to Slash commands

This commit is contained in:
ION606
2022-10-06 12:41:15 -04:00
parent b30fdc9e7f
commit d69e7e0479
12 changed files with 151 additions and 23 deletions
+2 -3
View File
@@ -17,9 +17,8 @@ function registerCommands(bot) {
key: code
*/
bot.commands.forEach((val, key) => {
if (val.options && val.name != 'econ') {
if (val.isDM) {
if ((val.options && val.name != 'econ') || val.isDm) {
if (val.isDm) {
commands.create({
name: val.name,
description: val.description,