diff --git a/src/modules/info/settings.ts b/src/modules/info/settings.ts index c7cdd79..56f0f06 100644 --- a/src/modules/info/settings.ts +++ b/src/modules/info/settings.ts @@ -7,7 +7,7 @@ import language from '../../utils/language'; function enabled(a: boolean, lang: string) { // @ts-ignore - return a ? language.get(lang).misc.enabled : language.get(lang).misc.disabled; + return a ? language.get(lang).misc.enabled : language.get(lang).misc.disabled; w } export = class Settings extends Command { diff --git a/src/modules/misc/help.ts b/src/modules/misc/help.ts index 51cf32e..7c38443 100644 --- a/src/modules/misc/help.ts +++ b/src/modules/misc/help.ts @@ -30,13 +30,13 @@ export = class Help extends Command { } let arg = ctx.args[0] if (await (await Folders()).includes(arg)) { - if (arg === 'developer') return + if (arg === 'developer' && !ctx.isDeveloper) return let commands = await (await Commands(arg, ctx.client)).map(command => `\`${command.name}\` - ${command.description}`) embed.addField("Commands", commands.join("\n")) // @ts-ignore - embed.setTitle(`${language.get(ctx.settings.locale).categories[folder.toLowerCase()].name || arg}`) + embed.setTitle(`${language.get(ctx.settings.locale).categories[command?.module.toLowerCase()].name || arg}`) // @ts-ignore - embed.setDescription(`${language.get(ctx.settings.locale).categories[folder.toLowerCase()].desc || ""}\n\nTotal Commands: **${commands.length}**`) + embed.setDescription(`${language.get(ctx.settings.locale).categories[command?.module.toLowerCase()].desc || ""}\n\nTotal Commands: **${commands.length}**`) return ctx.channel.send(embed) } // @ts-ignore @@ -46,7 +46,7 @@ export = class Help extends Command { embed.setTitle("Command Help") if (command.aliases?.length !== 0) embed.addField("Aliases", `ā‡’\`${command.aliases?.join("`\nā‡’`")}\``, true) // @ts-ignore - embed.setDescription(`**Cooldown:** ${command.cooldown}s\n**Module:** ${language.get(ctx.settings.locale).categories[folder.toLowerCase()].name || command.module}\n**NSFW:** ${command.nsfw}`) + embed.setDescription(`**Cooldown:** ${command.cooldown}s\n**Module:** ${language.get(ctx.settings.locale).categories[command?.module.toLowerCase()].name || command.module}\n**NSFW:** ${command.nsfw}`) embed.addField("Usage", `\`thal ${command.name}\` ${command.usage}`, true) ctx.channel.send(embed) }