add pin to embed for soft/hard reports
parent
e1e74515f3
commit
fa4e228571
|
@ -154,8 +154,11 @@ export default class Score extends Command {
|
|||
} else {
|
||||
embed.setFooter(this.client.user.username, this.client.user.avatarURL);
|
||||
}
|
||||
if (args[1] === 'hard' && this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 6)) {
|
||||
// eslint-disable-next-line no-mixed-operators
|
||||
if ((args[1] === 'hard' || args[1] === 'soft') && this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 6)) {
|
||||
if (score.pin?.length > 0) embed.addField('PIN', score.pin.join('-'), true);
|
||||
}
|
||||
if (args[1] === 'hard' && this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 6)) {
|
||||
await message.channel.createMessage({ embed });
|
||||
await message.channel.createMessage('***===BEGIN ADDITIONAL INFORMATION===***');
|
||||
await this.client.commands.get('whois').run(message, [user.id]);
|
||||
|
|
Loading…
Reference in New Issue