diff --git a/commands/util/help.js b/commands/util/help.js index 3165f9f5..2824a783 100644 --- a/commands/util/help.js +++ b/commands/util/help.js @@ -46,14 +46,14 @@ module.exports = class HelpCommand extends Command { .setTitle(!showAll ? `Commands Available in ${msg.guild ? msg.guild.name : 'this DM'}` : 'All Commands') .setDescription(`Use ${msg.usage('')} to view detailed information about a specific command.`) .setColor(0x00AE86); - for (const group of this.client.registry.groups.array()) { + for (const group of this.client.registry.groups.values()) { embed.addField(group.name, showAll ? group.commands.map(c => c.name).join(', ') : group.commands.filter(c => c.isUsable(msg)).map(c => c.name).join(', ') || 'None Available'); } try { - await msg.author.send({ embed }); + await msg.direct({ embed }); return msg.say(':mailbox_with_mail: Sent you a DM with information.'); } catch (err) { return msg.say('Failed to send DM. You probably have DMs disabled.'); diff --git a/package.json b/package.json index 4e5e57dc..43ded3ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "19.8.1", + "version": "19.8.2", "description": "A Discord Bot", "main": "shardingmanager.js", "scripts": {