typo fixes

merge-requests/25/merge
Matthew 2021-04-18 22:46:21 -04:00
parent 94af4fc2d2
commit 53802623de
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ export default class Score extends Command {
if (!user) { 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])] }); 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 (!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; 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 (!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 (message.channel.type !== 0) return this.error(message.channel, 'Hard Inquiries must be initiated in a guild.');
if (args[1] === 'hard') { if (args[1] === 'hard') {
@ -157,7 +157,7 @@ export default class Score extends Command {
default: default:
break; 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.*'); if (judgementsStr?.length > 1000) embed.addField('Judgements', '*Too many to list.*');
else embed.addField('Judgements', judgementsStr); else embed.addField('Judgements', judgementsStr);