Skip to content

Instantly share code, notes, and snippets.

@cborac
Created April 19, 2020 21:26
Show Gist options
  • Save cborac/1c6d31751552a827726ad93a5439d287 to your computer and use it in GitHub Desktop.
Save cborac/1c6d31751552a827726ad93a5439d287 to your computer and use it in GitHub Desktop.
try {
message.react("✅").then(r => {
if (args[1] && cmds.has(args[1])) return cmds.get(args[1])(message)
message.author.send(
new MessageEmbed()
.setColor("Help has arrived!")
.setDescription(`Don't worry I am here to help. Choose a topic from below and type .help \`topic\` in somewhere`)
.addField(`Available Commands`, "`" + cmds.keyArray().join("`") + "`")
.setColor("GREEN")).catch(err => {
r.remove()
console.error(err)
failedDM(message)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment