typo fixes
parent
94af4fc2d2
commit
53802623de
|
@ -36,9 +36,9 @@ export default class Score extends Command {
|
|||
if (!user) {
|
||||
const sc = await this.client.db.Score.findOne({ pin: [Number(args[0].split('-')[0]), Number(args[0].split('-')[1]), Number(args[0].split('-')[2])] });
|
||||
if (!sc) return this.error(message.channel, 'Member not found.');
|
||||
if (args[1] !== 'soft' && args[1] !== 'hard') return this.error(message.channel, 'Invalid syntax. Report pull type must be "soft" or "hard".');
|
||||
user = this.client.util.resolveMember(sc.userID, this.mainGuild)?.user;
|
||||
}
|
||||
if (args[1] !== 'soft' && args[1] !== 'hard') return this.error(message.channel, 'Invalid syntax. Report pull type must be "soft" or "hard".');
|
||||
if (!user) return this.error(message.channel, 'Member not found.');
|
||||
if (message.channel.type !== 0) return this.error(message.channel, 'Hard Inquiries must be initiated in a guild.');
|
||||
if (args[1] === 'hard') {
|
||||
|
@ -157,7 +157,7 @@ export default class Score extends Command {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
judgementsStr += `__**Docket #\`${judgement.jid}\`**__\n${judgement.description}\n**Severity:** ${severity}\n**Entered at:** ${moment(judgement.date).format('MMMM Do YYYY, h:mm:ss')}**\n**Expiration:** ${judgement.expires ? `${moment(judgement.expires).format('MMMM Do YYYY, h:mm:ss')}` : 'INDEFINITE'}\n\n`;
|
||||
judgementsStr += `__**Docket #\`${judgement.jid}\`**__\n${judgement.description}\n**Severity:** ${severity}\n**Entered at:** ${moment(judgement.date).format('MMMM Do YYYY, h:mm:ss')}\n**Expiration:** ${judgement.expires ? `${moment(judgement.expires).format('MMMM Do YYYY, h:mm:ss')}` : 'INDEFINITE'}\n\n`;
|
||||
}
|
||||
if (judgementsStr?.length > 1000) embed.addField('Judgements', '*Too many to list.*');
|
||||
else embed.addField('Judgements', judgementsStr);
|
||||
|
|
Loading…
Reference in New Issue