forked from Galactic/galactic-bot
add a time prop to opts, still defaults to 30s
This commit is contained in:
parent
5edd6963fe
commit
5e78e721da
@ -118,7 +118,7 @@ const Message = Structures.extend('Message', (Message) => {
|
||||
if(opts.reply) str = `<@!${this.author.id}> ${str}`;
|
||||
}
|
||||
await this.channel.send(str);
|
||||
return this.channel.awaitMessages((m) => m.author.id === this.author.id, { max: 1, time: 30000, errors: ['time'] })
|
||||
return this.channel.awaitMessages((m) => m.author.id === this.author.id, { max: 1, time: opts.time || 30000, errors: ['time'] })
|
||||
.then((collected) => {
|
||||
return collected.first();
|
||||
})
|
||||
@ -158,6 +158,7 @@ const Message = Structures.extend('Message', (Message) => {
|
||||
const embed = {
|
||||
author: {
|
||||
name: `${component.name}${component.module ? ` (${component.module.resolveable})` : ''}`,
|
||||
// eslint-disable-next-line camelcase
|
||||
icon_url: this.client.user.displayAvatarURL()
|
||||
},
|
||||
description: stripIndents`\`${prefix}${component.name}${component.usage ? ` ${component.usage}` : ''}\`${component.guildOnly ? ' *(guild-only)*' : ''}
|
||||
|
Loading…
Reference in New Issue
Block a user