Added more command flags, start documenting command flags, removed args argument from params function

This commit is contained in:
Essem 2021-07-14 17:23:50 -05:00
parent e414d31b52
commit d03967212e
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
24 changed files with 240 additions and 205 deletions

View file

@ -37,7 +37,7 @@ Default prefix is \`&\`.
**Want to help support esmBot's development? Consider donating on Patreon!** https://patreon.com/TheEssem
> Tip: You can get more info about a command by using \`help [command]\` in the bot itself.
> Tip: You can get much more info about a command by using \`help [command]\` in the bot itself.
`;
template += "\n## Table of Contents\n";

View file

@ -19,7 +19,8 @@ class ReactionCollector extends EventEmitter {
if (this.message.id !== message.id) return false;
if (this.filter(message, emoji, member)) {
this.collected.push({ message: message, emoji: emoji, member: member });
this.emit("reaction", await this.bot.getMessage(message.channel.id, message.id), emoji, member);
const msg = await this.bot.getMessage(message.channel.id, message.id);
this.emit("reaction", msg, emoji, member);
if (this.collected.length >= this.options.maxMatches) this.stop("maxMatches");
return true;
}