forked from Galactic/galactic-bot
some thing
This commit is contained in:
parent
261c007645
commit
b9cfd331c5
@ -9,4 +9,7 @@ switch({component}) {
|
||||
case "inhibitor":
|
||||
"inhibitor":
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
[EXAMPLES]
|
||||
Example usage
|
@ -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`)
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user