bugfixes + missing lang

This commit is contained in:
Erik 2022-05-11 15:06:06 +03:00
parent 0c1a1883f1
commit 621e026438
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 6 additions and 6 deletions

View File

@ -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),

View File

@ -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',