some thing

This commit is contained in:
Erik 2020-05-06 19:28:40 +03:00
parent 261c007645
commit b9cfd331c5
2 changed files with 12 additions and 3 deletions

View File

@ -9,4 +9,7 @@ switch({component}) {
case "inhibitor":
"inhibitor":
break;
}
}
[EXAMPLES]
Example usage

View File

@ -108,7 +108,7 @@ const Message = Structures.extend('Message', (Message) => {
if(opts.emoji) str = `${emojis[opts.emoji]} ${str}`;
if(opts.reply) str = `<@!${this.author.id}> ${str}`;
}
const message = await this.channel.send(str);
await this.channel.send(str);
return await this.channel.awaitMessages(m => m.author.id === this.author.id, { max: 1, time: 30000, errors: ['time'] })
.then((collected) => {
return collected.first();
@ -122,7 +122,13 @@ const Message = Structures.extend('Message', (Message) => {
//TODO: format this
return await this.embed({
title: `**${this.command.name.toUpperCase()} USAGE**`,
description: `${this.format(`C_${this.command.name.toUpperCase()}_USAGE`)}\n${this.format(`C_${this.command.name.toUpperCase()}_EXAMPLES`)}`
description: this.format(`C_${this.command.name.toUpperCase()}_USAGE`),
fields: [
{
name: this.format('EXAMPLES'),
value: this.format(`C_${this.command.name.toUpperCase()}_EXAMPLES`)
}
]
});
}