feat(ban): accept delete_message_seconds and app options (#2086)

This commit is contained in:
Hampus
2026-08-29 16:22:12 +02:00
committed by GitHub
parent 9f099a9127
commit 805acf4e5e
48 changed files with 1358 additions and 121 deletions
+8 -1
View File
@@ -11854,7 +11854,14 @@
"minimum": 0,
"maximum": 7,
"format": "int32",
"description": "Number of days of messages to delete from the banned user (0-7)"
"description": "Number of days of messages to delete from the banned user (0-7). Deprecated in favor of delete_message_seconds."
},
"delete_message_seconds": {
"type": "integer",
"minimum": 0,
"maximum": 604800,
"format": "int32",
"description": "Number of seconds of messages to delete for the banned user (0-604800, default 0)"
},
"reason": {"description": "The reason for the ban (max 512 characters)", "nullable": true, "type": "string"},
"ban_duration_seconds": {
@@ -133,6 +133,7 @@ export class AdminGuildMembershipService {
guildId,
targetId,
deleteMessageDays: data.delete_message_days,
deleteMessageSeconds: data.delete_message_seconds,
reason: data.reason ?? undefined,
banDurationSeconds: data.ban_duration_seconds ?? undefined,
skipGuildAuditLog: true,
@@ -225,14 +225,14 @@ export class MessageDeleteService {
async deleteUserMessagesInGuild({
userId,
guildId,
days,
seconds,
}: {
userId: UserID;
guildId: GuildID;
days: number;
seconds: number;
}): Promise<void> {
const channels = await this.deps.channelRepository.channelData.listGuildChannels(guildId);
const cutoffTimestamp = Date.now() - days * ms('1 day');
const cutoffTimestamp = Date.now() - seconds * ms('1 second');
const cutoffSnowflake = createMessageID(createSnowflakeFromTimestamp(cutoffTimestamp));
await Promise.all(
channels.map(async (channel: Channel) => {
@@ -262,7 +262,7 @@ export function GuildMemberController(app: HonoApp) {
const userId = ctx.get('user').id;
const targetId = createUserID(user_id);
const guildId = createGuildID(guild_id);
const {delete_message_days, reason, ban_duration_seconds} = ctx.req.valid('json');
const {delete_message_days, delete_message_seconds, reason, ban_duration_seconds} = ctx.req.valid('json');
const auditLogReason = ctx.get('auditLogReason') ?? null;
const effectiveReason = reason ?? auditLogReason ?? undefined;
await ctx.get('guildService').moderation.banMember(
@@ -271,6 +271,7 @@ export function GuildMemberController(app: HonoApp) {
guildId,
targetId,
deleteMessageDays: delete_message_days,
deleteMessageSeconds: delete_message_seconds,
reason: effectiveReason,
banDurationSeconds: ban_duration_seconds,
},
@@ -30,6 +30,8 @@ import type {IGuildRepositoryAggregate} from '../repositories/IGuildRepositoryAg
import {createGuildMfaEnforcer} from './GuildMfaEnforcement';
import {GuildMemberSearchIndexService} from './member/GuildMemberSearchIndexService';
const SECONDS_PER_DAY = 86_400;
export class GuildModerationService {
private readonly searchIndexService: GuildMemberSearchIndexService;
@@ -64,13 +66,23 @@ export class GuildModerationService {
targetId: UserID;
guildId: GuildID;
deleteMessageDays?: number;
deleteMessageSeconds?: number;
reason?: string | null;
banDurationSeconds?: number;
skipGuildAuditLog?: boolean;
},
auditLogReason?: string | null,
): Promise<void> {
const {userId, guildId, targetId, deleteMessageDays, reason, banDurationSeconds, skipGuildAuditLog} = params;
const {
userId,
guildId,
targetId,
deleteMessageDays,
deleteMessageSeconds,
reason,
banDurationSeconds,
skipGuildAuditLog,
} = params;
await this.checkModerationPermission({guildId, userId, permission: Permissions.BAN_MEMBERS});
if (userId === targetId) throw new UnknownGuildMemberError();
const targetUser = await this.userRepository.findUnique(targetId);
@@ -82,11 +94,13 @@ export class GuildModerationService {
const canManage = await this.gatewayService.checkTargetMember({guildId, userId, targetUserId: targetId});
if (!canManage) throw new MissingPermissionsError();
}
if (deleteMessageDays && deleteMessageDays > 0) {
const effectiveDeleteMessageSeconds =
deleteMessageSeconds ?? (deleteMessageDays !== undefined ? deleteMessageDays * SECONDS_PER_DAY : undefined);
if (effectiveDeleteMessageSeconds && effectiveDeleteMessageSeconds > 0) {
await this.workerService.addJob('deleteUserMessagesInGuildByTime', {
guildId: guildId.toString(),
userId: targetId.toString(),
days: deleteMessageDays,
seconds: effectiveDeleteMessageSeconds,
});
}
const targetIp = isIpBanExempt(targetUser.lastActiveIp) ? null : targetUser.lastActiveIp || null;
+8 -1
View File
@@ -30823,7 +30823,14 @@
"minimum": 0,
"maximum": 7,
"format": "int32",
"description": "Number of days of messages to delete from the banned user (0-7)"
"description": "Number of days of messages to delete from the banned user (0-7). Deprecated in favor of delete_message_seconds."
},
"delete_message_seconds": {
"type": "integer",
"minimum": 0,
"maximum": 604800,
"format": "int32",
"description": "Number of seconds of messages to delete for the banned user (0-604800, default 0)"
},
"reason": {
"anyOf": [{"type": "string"}, {"type": "null"}],
@@ -9,28 +9,28 @@ import {getWorkerDependencies} from '../WorkerContext';
const PayloadSchema = z.object({
guildId: z.string(),
userId: z.string(),
days: z.number().min(0).max(7),
seconds: z.number().min(0).max(604800),
});
const deleteUserMessagesInGuildByTime: WorkerTaskHandler = async (payload, helpers) => {
const validated = PayloadSchema.parse(payload);
helpers.logger.debug({payload: validated}, 'Processing deleteUserMessagesInGuildByTime task');
const guildId = createGuildID(BigInt(validated.guildId));
const userId = createUserID(BigInt(validated.userId));
const {days} = validated;
const {seconds} = validated;
Logger.debug(
{guildId: guildId.toString(), userId: userId.toString(), days},
{guildId: guildId.toString(), userId: userId.toString(), seconds},
'Starting time-based message deletion for guild ban',
);
try {
const {channelService} = getWorkerDependencies();
await channelService.messages.deletion.deleteUserMessagesInGuild({guildId, userId, days});
await channelService.messages.deletion.deleteUserMessagesInGuild({guildId, userId, seconds});
Logger.debug(
{guildId: guildId.toString(), userId: userId.toString(), days},
{guildId: guildId.toString(), userId: userId.toString(), seconds},
'Time-based message deletion completed successfully',
);
} catch (error) {
Logger.error(
{guildId: guildId.toString(), userId: userId.toString(), days, error},
{guildId: guildId.toString(), userId: userId.toString(), seconds, error},
'Failed to delete user messages in guild',
);
throw error;
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {BAN_DELETE_MESSAGE_OPTIONS} from '@app/features/moderation/constants/BanDeleteMessageOptions';
import {Permissions} from '@fluxer/constants/src/ChannelConstants';
import {msg} from '@lingui/core/macro';
import {useLingui} from '@lingui/react/macro';
@@ -83,39 +84,6 @@ const COMMAND_DELETE_MESSAGES_OPTION_DESCRIPTOR = msg({
message: "How much of the member's recent message history to delete.",
comment: 'Description for the /ban delete_messages option.',
});
const DELETE_MESSAGES_NONE_DESCRIPTOR = msg({
message: "Don't delete any",
comment: 'Choice label for retaining all messages when banning a member.',
});
const DELETE_MESSAGES_ONE_DAY_DESCRIPTOR = msg({
message: 'Previous 24 hours',
comment: 'Choice label for deleting one day of messages when banning a member.',
});
const DELETE_MESSAGES_TWO_DAYS_DESCRIPTOR = msg({
message: 'Previous 2 days',
comment: 'Choice label for deleting two days of messages when banning a member.',
});
const DELETE_MESSAGES_THREE_DAYS_DESCRIPTOR = msg({
message: 'Previous 3 days',
comment: 'Choice label for deleting three days of messages when banning a member.',
});
const DELETE_MESSAGES_FOUR_DAYS_DESCRIPTOR = msg({
message: 'Previous 4 days',
comment: 'Choice label for deleting four days of messages when banning a member.',
});
const DELETE_MESSAGES_FIVE_DAYS_DESCRIPTOR = msg({
message: 'Previous 5 days',
comment: 'Choice label for deleting five days of messages when banning a member.',
});
const DELETE_MESSAGES_SIX_DAYS_DESCRIPTOR = msg({
message: 'Previous 6 days',
comment: 'Choice label for deleting six days of messages when banning a member.',
});
const DELETE_MESSAGES_SEVEN_DAYS_DESCRIPTOR = msg({
message: 'Previous 7 days',
comment: 'Choice label for deleting seven days of messages when banning a member.',
});
interface SimpleCommand {
type: 'simple';
name: string;
@@ -271,16 +239,10 @@ export function useCommands(): Array<Command> {
type: 'choice',
required: true,
allowEmpty: false,
choices: [
{name: i18n._(DELETE_MESSAGES_NONE_DESCRIPTOR), value: '0'},
{name: i18n._(DELETE_MESSAGES_ONE_DAY_DESCRIPTOR), value: '1'},
{name: i18n._(DELETE_MESSAGES_TWO_DAYS_DESCRIPTOR), value: '2'},
{name: i18n._(DELETE_MESSAGES_THREE_DAYS_DESCRIPTOR), value: '3'},
{name: i18n._(DELETE_MESSAGES_FOUR_DAYS_DESCRIPTOR), value: '4'},
{name: i18n._(DELETE_MESSAGES_FIVE_DAYS_DESCRIPTOR), value: '5'},
{name: i18n._(DELETE_MESSAGES_SIX_DAYS_DESCRIPTOR), value: '6'},
{name: i18n._(DELETE_MESSAGES_SEVEN_DAYS_DESCRIPTOR), value: '7'},
],
choices: BAN_DELETE_MESSAGE_OPTIONS.map((option) => ({
name: i18n._(option.label),
value: String(option.seconds),
})),
},
{
name: 'reason',
@@ -7,6 +7,10 @@ import * as GuildMemberCommands from '@app/features/member/commands/GuildMemberC
import GuildMembers from '@app/features/member/state/GuildMembers';
import * as MessageCommands from '@app/features/messaging/commands/MessageCommands';
import {Message} from '@app/features/messaging/models/MessagingMessage';
import {
BAN_DELETE_MESSAGE_SECONDS_CHOICE_VALUES,
DEFAULT_BAN_DELETE_MESSAGE_SECONDS,
} from '@app/features/moderation/constants/BanDeleteMessageOptions';
import {Logger} from '@app/features/platform/utils/AppLogger';
import {User} from '@app/features/user/models/User';
import Users from '@app/features/user/state/Users';
@@ -43,7 +47,7 @@ export type ParsedCommand =
| {
type: 'ban';
userId: string;
deleteMessageDays: number;
deleteMessageSeconds: number;
duration: number;
reason?: string;
}
@@ -101,11 +105,11 @@ export function parseCommand(content: string): ParsedCommand {
const userId = userMatch[1];
const afterMention = rest.slice(userMatch[0].length).trim();
const parts = afterMention.length === 0 ? [] : afterMention.split(/\s+/);
let deleteMessageDays = 1;
let deleteMessageSeconds = DEFAULT_BAN_DELETE_MESSAGE_SECONDS;
let reasonStart = 0;
const firstPart = parts[0];
if (firstPart !== undefined && /^[0-7]$/.test(firstPart)) {
deleteMessageDays = Number(firstPart);
if (firstPart !== undefined && BAN_DELETE_MESSAGE_SECONDS_CHOICE_VALUES.has(firstPart)) {
deleteMessageSeconds = Number(firstPart);
reasonStart = 1;
} else if (firstPart !== undefined && /^\d+$/.test(firstPart)) {
return {type: 'unknown'};
@@ -114,7 +118,7 @@ export function parseCommand(content: string): ParsedCommand {
const reasonParts = parts.slice(reasonStart);
const reasonText = reasonParts.join(' ').trim();
const reason = reasonText || undefined;
return {type: 'ban', userId, deleteMessageDays, duration, reason};
return {type: 'ban', userId, deleteMessageSeconds, duration, reason};
}
if (trimmed.startsWith('/msg ')) {
const rest = trimmed.slice(5).trim();
@@ -310,7 +314,7 @@ export async function executeCommand(
await GuildCommands.banMember(
guildId,
command.userId,
command.deleteMessageDays,
command.deleteMessageSeconds,
command.reason,
command.duration,
);
@@ -51,7 +51,7 @@ interface GuildTemplateCreateParams {
}
interface BanMemberRequest {
delete_message_days: number;
delete_message_seconds: number;
reason: string | null;
ban_duration_seconds?: number;
}
@@ -124,9 +124,13 @@ function transferOwnershipRequest(newOwnerId: string): {new_owner_id: string} {
return {new_owner_id: newOwnerId};
}
function banMemberRequest(deleteMessageDays?: number, reason?: string, banDurationSeconds?: number): BanMemberRequest {
function banMemberRequest(
deleteMessageSeconds?: number,
reason?: string,
banDurationSeconds?: number,
): BanMemberRequest {
return {
delete_message_days: deleteMessageDays ?? 0,
delete_message_seconds: deleteMessageSeconds ?? 0,
reason: reason ?? null,
ban_duration_seconds: banDurationSeconds,
};
@@ -373,13 +377,13 @@ export async function transferOwnership(guildId: string, newOwnerId: string): Pr
export async function banMember(
guildId: string,
userId: string,
deleteMessageDays?: number,
deleteMessageSeconds?: number,
reason?: string,
banDurationSeconds?: number,
): Promise<void> {
try {
await http.put(Endpoints.GUILD_BAN(guildId, userId), {
body: banMemberRequest(deleteMessageDays, reason, banDurationSeconds),
body: banMemberRequest(deleteMessageSeconds, reason, banDurationSeconds),
});
logger.debug(`Banned user ${userId} from guild ${guildId}`);
} catch (error) {
@@ -38987,3 +38987,38 @@ msgstr "تكبير"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "تصغير"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "عدم حذف أي شيء"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "الساعة السابقة"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "آخر 6 ساعات"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "آخر 12 ساعة"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "آخر 24 ساعة"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "آخر 3 أيام"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "آخر 7 أيام"
@@ -38987,3 +38987,38 @@ msgstr "Увеличаване"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Намаляване"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Не изтривай нищо"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Предишен час"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Последните 6 часа"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "През последните 12 часа"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "През последните 24 часа"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Последните 3 дни"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Предишни 7 дни"
@@ -38987,3 +38987,38 @@ msgstr "Přiblížit"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Oddálit"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Neodstranit žádné"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Předchozí hodina"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Posledních 6 hodin"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Posledních 12 hodin"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Posledních 24 hodin"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Poslední 3 dny"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Posledních 7 dní"
@@ -38987,3 +38987,38 @@ msgstr "Zoom ind"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Zoom ud"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Slet ingen"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Sidste time"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Seneste 6 timer"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Seneste 12 timer"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Seneste 24 timer"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Seneste 3 dage"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Seneste 7 dage"
@@ -38987,3 +38987,38 @@ msgstr "Vergrößern"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Verkleinern"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Nichts löschen"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Letzte Stunde"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Letzte 6 Stunden"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Letzte 12 Stunden"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Letzte 24 Stunden"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Letzte 3 Tage"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Letzte 7 Tage"
@@ -38987,3 +38987,38 @@ msgstr "Μεγέθυνση"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Σμίκρυνση"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Να μην διαγραφεί τίποτα"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Προηγούμενη ώρα"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Τελευταίες 6 ώρες"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Τελευταίες 12 ώρες"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Τελευταίες 24 ώρες"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Τελευταίες 3 ημέρες"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Προηγούμενες 7 ημέρες"
@@ -38988,3 +38988,38 @@ msgstr "Zoom in"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Zoom out"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Don't delete any"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Previous hour"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Previous 6 hours"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Previous 12 hours"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Previous 24 hours"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Previous 3 days"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Previous 7 days"
@@ -38988,3 +38988,38 @@ msgstr "Zoom in"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Zoom out"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Don't Delete Any"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Previous Hour"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Previous 6 Hours"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Previous 12 Hours"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Previous 24 Hours"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Previous 3 Days"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Previous 7 Days"
@@ -38987,3 +38987,38 @@ msgstr "Acercar"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Alejar"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "No borrar nada"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Última hora"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Últimas 6 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Últimas 12 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Últimas 24 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Últimos 3 días"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Últimos 7 días"
@@ -38987,3 +38987,38 @@ msgstr "Acercar"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Alejar"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "No eliminar"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Última hora"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Últimas 6 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Últimas 12 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Últimas 24 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Últimos 3 días"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Últimos 7 días"
@@ -38987,3 +38987,38 @@ msgstr "Lähennä"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Loitonna"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Älä poista mitään"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Edellinen tunti"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Edelliset 6 tuntia"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Edelliset 12 tuntia"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Edelliset 24 tuntia"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Edelliset 3 päivää"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Edelliset 7 päivää"
@@ -38987,3 +38987,38 @@ msgstr "Zoom avant"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Dézoomer"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Ne pas supprimer"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Dernière heure"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "6 dernières heures"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "12 dernières heures"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "24 dernières heures"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "3 derniers jours"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "7 derniers jours"
@@ -38987,3 +38987,38 @@ msgstr "התקרבות"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "הקטן תצוגה"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "אל תמחק כלום"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "שעה קודמת"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "6 השעות האחרונות"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "12 השעות האחרונות"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "24 השעות האחרונות"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "3 הימים האחרונים"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "7 הימים האחרונים"
@@ -38987,3 +38987,38 @@ msgstr "ज़ूम इन करें"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "छोटा करें"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "कोई भी डिलीट न करें"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "पिछला घंटा"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "पिछले 6 घंटे"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "पिछले 12 घंटे"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "पिछले 24 घंटे"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "पिछले 3 दिन"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "पिछले 7 दिन"
@@ -38987,3 +38987,38 @@ msgstr "Povećaj"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Smanji prikaz"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Ne briši ništa"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Prošli sat"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Prethodnih 6 sati"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Prošlih 12 sati"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Prethodna 24 sata"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Prethodna 3 dana"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Prethodnih 7 dana"
@@ -38987,3 +38987,38 @@ msgstr "Nagyítás"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Kicsinyítés"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Ne törölj semmit"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Előző óra"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Előző 6 óra"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Előző 12 óra"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Előző 24 óra"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Előző 3 nap"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Előző 7 nap"
@@ -38987,3 +38987,38 @@ msgstr "Perbesar"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Perkecil"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Jangan Hapus Apa Pun"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Satu Jam Terakhir"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "6 Jam Terakhir"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "12 Jam Terakhir"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "24 Jam Terakhir"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "3 Hari Terakhir"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "7 Hari Terakhir"
@@ -38987,3 +38987,38 @@ msgstr "Ingrandisci"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Riduci zoom"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Non eliminare nulla"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Ultima ora"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Ultime 6 ore"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Ultime 12 ore"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Ultime 24 ore"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Ultimi 3 giorni"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Ultimi 7 giorni"
@@ -38987,3 +38987,38 @@ msgstr "拡大"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "縮小"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "すべて削除しない"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "過去1時間"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "過去6時間"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "過去12時間"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "過去24時間"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "過去3日間"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "過去7日間"
@@ -38987,3 +38987,38 @@ msgstr "확대"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "축소"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "모든 메시지 삭제 안 함"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "지난 1시간"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "지난 6시간"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "지난 12시간"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "지난 24시간"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "지난 3일"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "지난 7일"
@@ -38987,3 +38987,38 @@ msgstr "Didinti"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Mažinti"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Neištrinti jokių"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Ankstesnė valanda"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Paskutinės 6 valandos"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Per pastarąsias 12 valandų"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Per pastarąsias 24 valandas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Paskutinės 3 dienos"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Per pastarąsias 7 dienas"
@@ -38987,3 +38987,38 @@ msgstr "Inzoomen"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Uitzoomen"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Niet verwijderen"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Vorige uur"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Afgelopen 6 uur"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Afgelopen 12 uur"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Afgelopen 24 uur"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Afgelopen 3 dagen"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Afgelopen 7 dagen"
@@ -38987,3 +38987,38 @@ msgstr "Zoom inn"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Zoom ut"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Ikke slett noen"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Siste time"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Siste 6 timer"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Siste 12 timer"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Siste 24 timer"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Siste 3 dager"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Siste 7 dager"
@@ -38987,3 +38987,38 @@ msgstr "Powiększ"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Pomniejsz"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Nie usuwaj żadnych"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Z poprzedniej godziny"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Z ostatnich 6 godzin"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Z ostatnich 12 godzin"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Z ostatnich 24 godzin"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Ostatnie 3 dni"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Poprzednie 7 dni"
@@ -38987,3 +38987,38 @@ msgstr "Mais zoom"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Reduzir zoom"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Não excluir nenhuma"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Última hora"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Últimas 6 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Últimas 12 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Últimas 24 horas"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Últimos 3 dias"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Últimos 7 dias"
@@ -38987,3 +38987,38 @@ msgstr "Mărire"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Micșorare"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Nu șterge nimic"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Ultima oră"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Ultimele 6 ore"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Ultimele 12 ore"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Ultimele 24 de ore"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Ultimele 3 zile"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Ultimele 7 zile"
@@ -38987,3 +38987,38 @@ msgstr "Увеличить"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Уменьшить"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Не удалять"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "За последний час"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "За последние 6 часов"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "За последние 12 часов"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "За последние 24 часа"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "За последние 3 дня"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "За последние 7 дней"
@@ -38987,3 +38987,38 @@ msgstr "Zooma in"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Zooma ut"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Radera inget"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Senaste timmen"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Senaste 6 timmarna"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Senaste 12 timmarna"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Senaste 24 timmarna"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Senaste 3 dagarna"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Senaste 7 dagarna"
@@ -38987,3 +38987,38 @@ msgstr "ซูมเข้า"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "ย่อ"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "ไม่ลบข้อความใดๆ"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "ชั่วโมงที่แล้ว"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "6 ชั่วโมงที่ผ่านมา"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "12 ชั่วโมงที่ผ่านมา"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "24 ชั่วโมงที่ผ่านมา"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "3 วันที่ผ่านมา"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "7 วันที่ผ่านมา"
@@ -38987,3 +38987,38 @@ msgstr "Yakınlaştır"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Uzaklaştır"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Hiçbirini Silme"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Son Bir Saat"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "Son 6 Saat"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "Son 12 Saat"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "Son 24 Saat"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "Son 3 Gün"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "Son 7 Gün"
@@ -38987,3 +38987,38 @@ msgstr "Збільшити"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Зменшити масштаб"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Не видаляти жодних"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Минулу годину"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "За останні 6 годин"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "За останні 12 годин"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "За останні 24 години"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "За останні 3 дні"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "За останні 7 днів"
@@ -38987,3 +38987,38 @@ msgstr "Phóng to"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "Thu nhỏ"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "Không xóa gì cả"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "Giờ trước"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "6 giờ trước"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "12 giờ trước"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "24 giờ qua"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "3 ngày trước"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "7 ngày trước"
@@ -38987,3 +38987,38 @@ msgstr "放大"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "缩小"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "不删除任何"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "过去一小时"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "过去6小时"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "过去12小时"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "过去24小时"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "过去 3 天"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "过去 7 天"
@@ -38987,3 +38987,38 @@ msgstr "放大"
#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86
msgid "Zoom out"
msgstr "縮小"
#. Message-history-deletion option when banning a member. Keeps all of the member's messages.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:14
msgid "Don't Delete Any"
msgstr "不刪除任何"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:21
msgid "Previous Hour"
msgstr "過去一小時"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:28
msgid "Previous 6 Hours"
msgstr "過去 6 小時"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:36
msgid "Previous 12 Hours"
msgstr "過去 12 小時"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:44
msgid "Previous 24 Hours"
msgstr "過去 24 小時"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:52
msgid "Previous 3 Days"
msgstr "過去 3 天"
#. Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.
#: src/features/moderation/constants/BanDeleteMessageOptions.ts:60
msgid "Previous 7 Days"
msgstr "過去 7 天"
@@ -9,6 +9,7 @@ import {
import {$isSlashOptionalHintNode} from '@app/features/lexical/composer/nodes/SlashOptionalHintNode';
import {$isSlashSeparatorNode} from '@app/features/lexical/composer/nodes/SlashSeparatorNode';
import {$isSlashSlotNode, type SlashSlotNode} from '@app/features/lexical/composer/nodes/SlashSlotNode';
import {BAN_DELETE_MESSAGE_SECONDS_CHOICE_VALUES} from '@app/features/moderation/constants/BanDeleteMessageOptions';
import {$getRoot, $isElementNode, $isTextNode, type LexicalNode} from 'lexical';
export const LexicalMessageCommandResolutionStatus = Object.freeze({
@@ -47,7 +48,6 @@ const INVALID_COMMAND: InvalidCommandResolution = Object.freeze({
status: LexicalMessageCommandResolutionStatus.INVALID_COMMAND,
});
const USER_WIRE_PATTERN = /^<@!?(\d+)>$/;
const DELETE_MESSAGE_DAYS_PATTERN = /^[0-7]$/;
function hasOnlySlots(slots: Map<string, SlashSlotNode>, allowed: ReadonlyArray<string>): boolean {
for (const name of slots.keys()) {
@@ -189,12 +189,12 @@ function resolveCommand(structure: CommandStructure): Exclude<CommandUtils.Parse
if (name === '/ban') {
if (!hasOnlySlots(slots, ['user', 'delete_messages', 'reason'])) return null;
const userId = readUserSlot(slots, 'user');
const deleteMessageDaysText = readChoiceSlot(slots, 'delete_messages');
const deleteMessageSecondsText = readChoiceSlot(slots, 'delete_messages');
const reason = readOptionalStringSlot(slots, 'reason');
if (
userId == null ||
deleteMessageDaysText == null ||
!DELETE_MESSAGE_DAYS_PATTERN.test(deleteMessageDaysText) ||
deleteMessageSecondsText == null ||
!BAN_DELETE_MESSAGE_SECONDS_CHOICE_VALUES.has(deleteMessageSecondsText) ||
reason === null
) {
return null;
@@ -203,14 +203,14 @@ function resolveCommand(structure: CommandStructure): Exclude<CommandUtils.Parse
return {
type: 'ban',
userId,
deleteMessageDays: Number(deleteMessageDaysText),
deleteMessageSeconds: Number(deleteMessageSecondsText),
duration: 0,
};
}
return {
type: 'ban',
userId,
deleteMessageDays: Number(deleteMessageDaysText),
deleteMessageSeconds: Number(deleteMessageSecondsText),
duration: 0,
reason,
};
@@ -15,6 +15,7 @@ import {
} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {showModerationErrorModal} from '@app/features/moderation/components/alerts/ModerationErrorModalUtils';
import styles from '@app/features/moderation/components/modals/BanMemberModal.module.css';
import {BAN_DELETE_MESSAGE_OPTIONS} from '@app/features/moderation/constants/BanDeleteMessageOptions';
import {Logger} from '@app/features/platform/utils/AppLogger';
import {Button} from '@app/features/ui/button/Button';
import * as ModalCommands from '@app/features/ui/commands/ModalCommands';
@@ -79,33 +80,6 @@ const DELETE_MESSAGE_HISTORY_DESCRIPTOR = msg({
comment:
'Section heading and accessible label for the message-history-deletion radio group in the destructive ban-member modal. Destructive option group.',
});
const DON_T_DELETE_ANY_DESCRIPTOR = msg({
message: "Don't delete any",
comment:
'Message-history-deletion option in the destructive ban-member modal. Keeps all messages from the banned member. Short standalone label.',
});
const KEEP_ALL_MESSAGES_DESCRIPTOR = msg({
message: 'Keep all messages',
comment: 'Helper text under the "Don\'t delete any" message-history option in the destructive ban-member modal.',
});
const PREVIOUS_24_HOURS_DESCRIPTOR = msg({
message: 'Previous 24 hours',
comment:
"Message-history-deletion option in the destructive ban-member modal. Deletes the banned member's messages from the last 24 hours.",
});
const DELETE_MESSAGES_FROM_THE_LAST_DAY_DESCRIPTOR = msg({
message: 'Delete their messages from the last 24 hours',
comment: 'Helper text under the "Previous 24 hours" option in the destructive ban-member modal.',
});
const PREVIOUS_7_DAYS_DESCRIPTOR = msg({
message: 'Previous 7 days',
comment:
"Message-history-deletion option in the destructive ban-member modal. Deletes the banned member's messages from the last 7 days.",
});
const DELETE_MESSAGES_FROM_THE_LAST_WEEK_DESCRIPTOR = msg({
message: 'Delete their messages from the last 7 days',
comment: 'Helper text under the "Previous 7 days" option in the destructive ban-member modal.',
});
const REASON_OPTIONAL_DESCRIPTOR = msg({
message: 'Reason (optional)',
comment:
@@ -130,7 +104,7 @@ export const BanMemberModal: React.FC<{guildId: string; targetUser: User}> = obs
const motionArtworkAllowed = !Accessibility.useReducedMotion && !dataSaverOn;
const videoPlaybackAllowed = useAnimatedMediaVideoPlayback(videoRef, {enabled: motionArtworkAllowed});
const [reason, setReason] = useState('');
const [deleteMessageDays, setDeleteMessageDays] = useState<number>(1);
const [deleteMessageSeconds, setDeleteMessageSeconds] = useState<number>(60 * 60 * 24);
const [banDuration, setBanDuration] = useState<number>(0);
const [isBanDurationCustom, setIsBanDurationCustom] = useState(false);
const [isBanning, setIsBanning] = useState(false);
@@ -154,7 +128,7 @@ export const BanMemberModal: React.FC<{guildId: string; targetUser: User}> = obs
const handleBan = async () => {
setIsBanning(true);
try {
await GuildCommands.banMember(guildId, targetUser.id, deleteMessageDays, reason || undefined, banDuration);
await GuildCommands.banMember(guildId, targetUser.id, deleteMessageSeconds, reason || undefined, banDuration);
ToastCommands.createToast({
type: 'success',
children: <Trans>Banned {targetUserTag} from the community</Trans>,
@@ -256,23 +230,14 @@ export const BanMemberModal: React.FC<{guildId: string; targetUser: User}> = obs
</div>
<RadioGroup
aria-label={i18n._(DELETE_MESSAGE_HISTORY_DESCRIPTOR)}
options={[
{value: 0, name: i18n._(DON_T_DELETE_ANY_DESCRIPTOR), desc: i18n._(KEEP_ALL_MESSAGES_DESCRIPTOR)},
{
value: 1,
name: i18n._(PREVIOUS_24_HOURS_DESCRIPTOR),
desc: i18n._(DELETE_MESSAGES_FROM_THE_LAST_DAY_DESCRIPTOR),
},
{
value: 7,
name: i18n._(PREVIOUS_7_DAYS_DESCRIPTOR),
desc: i18n._(DELETE_MESSAGES_FROM_THE_LAST_WEEK_DESCRIPTOR),
},
]}
value={deleteMessageDays}
onChange={setDeleteMessageDays}
options={BAN_DELETE_MESSAGE_OPTIONS.map((option) => ({
value: option.seconds,
name: i18n._(option.label),
}))}
value={deleteMessageSeconds}
onChange={setDeleteMessageSeconds}
disabled={isBanning}
data-flx="moderation.ban-member-modal.radio-group.set-delete-message-days"
data-flx="moderation.ban-member-modal.radio-group.set-delete-message-seconds"
/>
</div>
<Input
@@ -0,0 +1,73 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {MessageDescriptor} from '@lingui/core';
import {msg} from '@lingui/core/macro';
export interface BanDeleteMessageOption {
seconds: number;
label: MessageDescriptor;
}
export const BAN_DELETE_MESSAGE_OPTIONS: ReadonlyArray<BanDeleteMessageOption> = [
{
seconds: 0,
label: msg({
message: "Don't Delete Any",
comment: "Message-history-deletion option when banning a member. Keeps all of the member's messages.",
}),
},
{
seconds: 3600,
label: msg({
message: 'Previous Hour',
comment:
"Message-history-deletion option when banning a member. Deletes the member's messages from the last hour.",
}),
},
{
seconds: 21600,
label: msg({
message: 'Previous 6 Hours',
comment:
"Message-history-deletion option when banning a member. Deletes the member's messages from the last 6 hours.",
}),
},
{
seconds: 43200,
label: msg({
message: 'Previous 12 Hours',
comment:
"Message-history-deletion option when banning a member. Deletes the member's messages from the last 12 hours.",
}),
},
{
seconds: 86400,
label: msg({
message: 'Previous 24 Hours',
comment:
"Message-history-deletion option when banning a member. Deletes the member's messages from the last 24 hours.",
}),
},
{
seconds: 259200,
label: msg({
message: 'Previous 3 Days',
comment:
"Message-history-deletion option when banning a member. Deletes the member's messages from the last 3 days.",
}),
},
{
seconds: 604800,
label: msg({
message: 'Previous 7 Days',
comment:
"Message-history-deletion option when banning a member. Deletes the member's messages from the last 7 days.",
}),
},
];
export const DEFAULT_BAN_DELETE_MESSAGE_SECONDS = 60 * 60 * 24;
export const BAN_DELETE_MESSAGE_SECONDS_CHOICE_VALUES: ReadonlySet<string> = new Set(
BAN_DELETE_MESSAGE_OPTIONS.map((option) => String(option.seconds)),
);
@@ -292,7 +292,16 @@ export const GuildBanCreateRequest = z.object({
.min(0)
.max(7)
.default(0)
.describe('Number of days of messages to delete from the banned user (0-7)'),
.describe(
'Number of days of messages to delete from the banned user (0-7). Deprecated in favor of delete_message_seconds.',
),
delete_message_seconds: z
.number()
.int()
.min(0)
.max(604800)
.optional()
.describe('Number of seconds of messages to delete for the banned user (0-604800, default 0)'),
reason: createStringType(0, 512).nullish().describe('The reason for the ban (max 512 characters)'),
ban_duration_seconds: z
.number()