bugfix
This commit is contained in:
parent
e6373d1c76
commit
55d9303d5d
@ -133,7 +133,7 @@ class HistoryCommand extends SlashCommand {
|
||||
let string = stripIndents`**Target:** ${Util.escapeMarkdown(target.tag || target.name)}${verbose?.value ? ` (${target.id})` : ''}
|
||||
**Moderator:** ${executor ? `${Util.escapeMarkdown(executor.tag)}${verbose?.value ? ` (${infraction.executor})` : ''}` : infraction.executor}`;
|
||||
|
||||
if (infraction.data.roleIds) {
|
||||
if (infraction.data?.roleIds) {
|
||||
string += `\n${guild.format('INFRACTION_DESCRIPTIONROLES', {
|
||||
plural: infraction.data.roleIds.length === 1 ? '' : 's',
|
||||
roles: priv ? infraction.data.roleNames.join(', ') : infraction.data.roleIds.map((r) => `<@&${r}>`).join(' ')
|
||||
|
Loading…
Reference in New Issue
Block a user