diff --git a/src/structure/components/commands/moderation/Modtimers.js b/src/structure/components/commands/moderation/Modtimers.js index e5169d2..645c771 100644 --- a/src/structure/components/commands/moderation/Modtimers.js +++ b/src/structure/components/commands/moderation/Modtimers.js @@ -22,12 +22,12 @@ class ModtimersCommand extends SlashCommand { const fields = []; for (const { infraction } of callbacks.values()) { - const user = await guild.resolveUser(infraction.target); + const target = infraction.targetType === 'USER' ? await guild.resolveUser(infraction.target) : await guild.resolveChannel(infraction.target); const moderator = await guild.resolveUser(infraction.executor); fields.push({ name: `Case ${infraction.case}`, value: guild.format('COMMAND_MODTIMERS_DESC', { - target: `${user.tag} (${user.id})`, + target: `${target.tag || target.name} (${target.id})`, moderator: `${moderator.tag} (${moderator.id})`, issued: Math.floor(infraction.timestamp / 1000), ends: Math.floor((infraction.timestamp + infraction.duration) / 1000), diff --git a/src/structure/components/commands/moderation/Prune.js b/src/structure/components/commands/moderation/Prune.js index 51e9538..b34ee49 100644 --- a/src/structure/components/commands/moderation/Prune.js +++ b/src/structure/components/commands/moderation/Prune.js @@ -12,7 +12,7 @@ class PruneCommand extends ModerationCommand { { name: 'channels', type: 'CHANNELS', - description: 'The channels to lock' + description: 'The channels to prune' }, { name: 'users', type: 'USERS', @@ -25,7 +25,7 @@ class PruneCommand extends ModerationCommand { }, { name: 'silent', type: 'BOOLEAN', - description: '' + description: 'Prune quietly' }, { name: 'bots', type: 'BOOLEAN', @@ -61,7 +61,7 @@ class PruneCommand extends ModerationCommand { }, { name: 'emojis', type: 'BOOLEAN', - description: '' + description: 'Prune messages cotaining emojis' }, { name: 'after', type: 'STRING', @@ -74,7 +74,7 @@ class PruneCommand extends ModerationCommand { name: 'logic', // type: '', choices: [{ name: 'AND', value: 'AND' }, { name: 'OR', value: 'OR' }], - description: '' + description: 'Logic type to use for combining options' }, { name: 'reason', type: 'STRING',