A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
feat(ban): accept delete_message_seconds and app options (#2086)
Hampus805acf4e5ee0
diff --git a/fluxer_admin/openapi-admin.json b/fluxer_admin/openapi-admin.jsonindex 20fd585de..90e7a16cc 100644--- a/fluxer_admin/openapi-admin.json+++ b/fluxer_admin/openapi-admin.json@@ -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": {diff --git a/fluxer_api/src/api/admin/services/guild/AdminGuildMembershipService.ts b/fluxer_api/src/api/admin/services/guild/AdminGuildMembershipService.tsindex 0da0ba810..f8d6c1068 100644--- a/fluxer_api/src/api/admin/services/guild/AdminGuildMembershipService.ts+++ b/fluxer_api/src/api/admin/services/guild/AdminGuildMembershipService.ts@@ -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,diff --git a/fluxer_api/src/api/channel/services/message/MessageDeleteService.ts b/fluxer_api/src/api/channel/services/message/MessageDeleteService.tsindex f9bc0012f..69628a606 100644--- a/fluxer_api/src/api/channel/services/message/MessageDeleteService.ts+++ b/fluxer_api/src/api/channel/services/message/MessageDeleteService.ts@@ -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) => {diff --git a/fluxer_api/src/api/guild/controllers/GuildMemberController.ts b/fluxer_api/src/api/guild/controllers/GuildMemberController.tsindex b1a8a7062..c6b7eb2e3 100644--- a/fluxer_api/src/api/guild/controllers/GuildMemberController.ts+++ b/fluxer_api/src/api/guild/controllers/GuildMemberController.ts@@ -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,},diff --git a/fluxer_api/src/api/guild/services/GuildModerationService.ts b/fluxer_api/src/api/guild/services/GuildModerationService.tsindex ae560a3cf..d9e41228c 100644--- a/fluxer_api/src/api/guild/services/GuildModerationService.ts+++ b/fluxer_api/src/api/guild/services/GuildModerationService.ts@@ -30,6 +30,8 @@ import type {IGuildRepositoryAggregate} from '../repositories/IGuildRepositoryAgimport {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;diff --git a/fluxer_api/src/api/openapi/openapi.json b/fluxer_api/src/api/openapi/openapi.jsonindex 1291cd748..dfefc2e5e 100644--- a/fluxer_api/src/api/openapi/openapi.json+++ b/fluxer_api/src/api/openapi/openapi.json@@ -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"}],diff --git a/fluxer_api/src/api/worker/tasks/DeleteUserMessagesInGuildByTime.ts b/fluxer_api/src/api/worker/tasks/DeleteUserMessagesInGuildByTime.tsindex ed381b198..937450bd7 100644--- a/fluxer_api/src/api/worker/tasks/DeleteUserMessagesInGuildByTime.ts+++ b/fluxer_api/src/api/worker/tasks/DeleteUserMessagesInGuildByTime.ts@@ -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;diff --git a/fluxer_app/src/features/devtools/hooks/useCommands.ts b/fluxer_app/src/features/devtools/hooks/useCommands.tsindex f08407db6..2416e17af 100644--- a/fluxer_app/src/features/devtools/hooks/useCommands.ts+++ b/fluxer_app/src/features/devtools/hooks/useCommands.ts@@ -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',diff --git a/fluxer_app/src/features/devtools/utils/CommandUtils.ts b/fluxer_app/src/features/devtools/utils/CommandUtils.tsindex 02f548483..bafbeb810 100644--- a/fluxer_app/src/features/devtools/utils/CommandUtils.ts+++ b/fluxer_app/src/features/devtools/utils/CommandUtils.ts@@ -7,6 +7,10 @@ import * as GuildMemberCommands from '@app/features/member/commands/GuildMemberCimport 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,);diff --git a/fluxer_app/src/features/guild/commands/GuildCommands.ts b/fluxer_app/src/features/guild/commands/GuildCommands.tsindex 7d3334436..87baccff1 100644--- a/fluxer_app/src/features/guild/commands/GuildCommands.ts+++ b/fluxer_app/src/features/guild/commands/GuildCommands.ts@@ -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): Prexport 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) {diff --git a/fluxer_app/src/features/i18n/locales/ar/messages.po b/fluxer_app/src/features/i18n/locales/ar/messages.poindex 59d14a6d1..0b950ec05 100644--- a/fluxer_app/src/features/i18n/locales/ar/messages.po+++ b/fluxer_app/src/features/i18n/locales/ar/messages.po@@ -38987,3 +38987,38 @@ msgstr "تكبير"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 أيام"diff --git a/fluxer_app/src/features/i18n/locales/bg/messages.po b/fluxer_app/src/features/i18n/locales/bg/messages.poindex 14132ce1a..3452c641a 100644--- a/fluxer_app/src/features/i18n/locales/bg/messages.po+++ b/fluxer_app/src/features/i18n/locales/bg/messages.po@@ -38987,3 +38987,38 @@ msgstr "Увеличаване"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 дни"diff --git a/fluxer_app/src/features/i18n/locales/cs/messages.po b/fluxer_app/src/features/i18n/locales/cs/messages.poindex 4b197db1f..1a7cd6d0f 100644--- a/fluxer_app/src/features/i18n/locales/cs/messages.po+++ b/fluxer_app/src/features/i18n/locales/cs/messages.po@@ -38987,3 +38987,38 @@ msgstr "Přiblížit"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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í"diff --git a/fluxer_app/src/features/i18n/locales/da/messages.po b/fluxer_app/src/features/i18n/locales/da/messages.poindex ab49174f6..718271031 100644--- a/fluxer_app/src/features/i18n/locales/da/messages.po+++ b/fluxer_app/src/features/i18n/locales/da/messages.po@@ -38987,3 +38987,38 @@ msgstr "Zoom ind"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/de/messages.po b/fluxer_app/src/features/i18n/locales/de/messages.poindex 4bac2c78a..45aec4557 100644--- a/fluxer_app/src/features/i18n/locales/de/messages.po+++ b/fluxer_app/src/features/i18n/locales/de/messages.po@@ -38987,3 +38987,38 @@ msgstr "Vergrößern"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/el/messages.po b/fluxer_app/src/features/i18n/locales/el/messages.poindex 240ce64ba..cb1b4918d 100644--- a/fluxer_app/src/features/i18n/locales/el/messages.po+++ b/fluxer_app/src/features/i18n/locales/el/messages.po@@ -38987,3 +38987,38 @@ msgstr "Μεγέθυνση"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 ημέρες"diff --git a/fluxer_app/src/features/i18n/locales/en-GB/messages.po b/fluxer_app/src/features/i18n/locales/en-GB/messages.poindex af405fbd8..017420287 100644--- a/fluxer_app/src/features/i18n/locales/en-GB/messages.po+++ b/fluxer_app/src/features/i18n/locales/en-GB/messages.po@@ -38988,3 +38988,38 @@ msgstr "Zoom in"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/en-US/messages.po b/fluxer_app/src/features/i18n/locales/en-US/messages.poindex c0af84f72..6a7d15121 100644--- a/fluxer_app/src/features/i18n/locales/en-US/messages.po+++ b/fluxer_app/src/features/i18n/locales/en-US/messages.po@@ -38988,3 +38988,38 @@ msgstr "Zoom in"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/es-419/messages.po b/fluxer_app/src/features/i18n/locales/es-419/messages.poindex 617120424..85bf39109 100644--- a/fluxer_app/src/features/i18n/locales/es-419/messages.po+++ b/fluxer_app/src/features/i18n/locales/es-419/messages.po@@ -38987,3 +38987,38 @@ msgstr "Acercar"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/es-ES/messages.po b/fluxer_app/src/features/i18n/locales/es-ES/messages.poindex 6042c4e3e..f9b28c52e 100644--- a/fluxer_app/src/features/i18n/locales/es-ES/messages.po+++ b/fluxer_app/src/features/i18n/locales/es-ES/messages.po@@ -38987,3 +38987,38 @@ msgstr "Acercar"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/fi/messages.po b/fluxer_app/src/features/i18n/locales/fi/messages.poindex 0cab229cc..16fa7f2b4 100644--- a/fluxer_app/src/features/i18n/locales/fi/messages.po+++ b/fluxer_app/src/features/i18n/locales/fi/messages.po@@ -38987,3 +38987,38 @@ msgstr "Lähennä"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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ää"diff --git a/fluxer_app/src/features/i18n/locales/fr/messages.po b/fluxer_app/src/features/i18n/locales/fr/messages.poindex 97565a92e..ed857439e 100644--- a/fluxer_app/src/features/i18n/locales/fr/messages.po+++ b/fluxer_app/src/features/i18n/locales/fr/messages.po@@ -38987,3 +38987,38 @@ msgstr "Zoom avant"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/he/messages.po b/fluxer_app/src/features/i18n/locales/he/messages.poindex 55dd273c8..72738fc4a 100644--- a/fluxer_app/src/features/i18n/locales/he/messages.po+++ b/fluxer_app/src/features/i18n/locales/he/messages.po@@ -38987,3 +38987,38 @@ msgstr "התקרבות"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 הימים האחרונים"diff --git a/fluxer_app/src/features/i18n/locales/hi/messages.po b/fluxer_app/src/features/i18n/locales/hi/messages.poindex fd8982683..7cb913756 100644--- a/fluxer_app/src/features/i18n/locales/hi/messages.po+++ b/fluxer_app/src/features/i18n/locales/hi/messages.po@@ -38987,3 +38987,38 @@ msgstr "ज़ूम इन करें"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 दिन"diff --git a/fluxer_app/src/features/i18n/locales/hr/messages.po b/fluxer_app/src/features/i18n/locales/hr/messages.poindex a47573003..767fee562 100644--- a/fluxer_app/src/features/i18n/locales/hr/messages.po+++ b/fluxer_app/src/features/i18n/locales/hr/messages.po@@ -38987,3 +38987,38 @@ msgstr "Povećaj"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/hu/messages.po b/fluxer_app/src/features/i18n/locales/hu/messages.poindex e0607a88c..a324a42dd 100644--- a/fluxer_app/src/features/i18n/locales/hu/messages.po+++ b/fluxer_app/src/features/i18n/locales/hu/messages.po@@ -38987,3 +38987,38 @@ msgstr "Nagyítás"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/id/messages.po b/fluxer_app/src/features/i18n/locales/id/messages.poindex 5746a5e50..27ccb28aa 100644--- a/fluxer_app/src/features/i18n/locales/id/messages.po+++ b/fluxer_app/src/features/i18n/locales/id/messages.po@@ -38987,3 +38987,38 @@ msgstr "Perbesar"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/it/messages.po b/fluxer_app/src/features/i18n/locales/it/messages.poindex 2469f4f9d..ee11982c3 100644--- a/fluxer_app/src/features/i18n/locales/it/messages.po+++ b/fluxer_app/src/features/i18n/locales/it/messages.po@@ -38987,3 +38987,38 @@ msgstr "Ingrandisci"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/ja/messages.po b/fluxer_app/src/features/i18n/locales/ja/messages.poindex 28d190e99..0fbbd5e91 100644--- a/fluxer_app/src/features/i18n/locales/ja/messages.po+++ b/fluxer_app/src/features/i18n/locales/ja/messages.po@@ -38987,3 +38987,38 @@ msgstr "拡大"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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日間"diff --git a/fluxer_app/src/features/i18n/locales/ko/messages.po b/fluxer_app/src/features/i18n/locales/ko/messages.poindex d5fc5de72..b9cf33ccb 100644--- a/fluxer_app/src/features/i18n/locales/ko/messages.po+++ b/fluxer_app/src/features/i18n/locales/ko/messages.po@@ -38987,3 +38987,38 @@ msgstr "확대"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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일"diff --git a/fluxer_app/src/features/i18n/locales/lt/messages.po b/fluxer_app/src/features/i18n/locales/lt/messages.poindex 0a6a64d95..62eceb158 100644--- a/fluxer_app/src/features/i18n/locales/lt/messages.po+++ b/fluxer_app/src/features/i18n/locales/lt/messages.po@@ -38987,3 +38987,38 @@ msgstr "Didinti"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/nl/messages.po b/fluxer_app/src/features/i18n/locales/nl/messages.poindex 32a120636..97899c4fa 100644--- a/fluxer_app/src/features/i18n/locales/nl/messages.po+++ b/fluxer_app/src/features/i18n/locales/nl/messages.po@@ -38987,3 +38987,38 @@ msgstr "Inzoomen"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/no/messages.po b/fluxer_app/src/features/i18n/locales/no/messages.poindex 36ffe8251..8dcc48ada 100644--- a/fluxer_app/src/features/i18n/locales/no/messages.po+++ b/fluxer_app/src/features/i18n/locales/no/messages.po@@ -38987,3 +38987,38 @@ msgstr "Zoom inn"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/pl/messages.po b/fluxer_app/src/features/i18n/locales/pl/messages.poindex 1ccd9e654..58a8eb718 100644--- a/fluxer_app/src/features/i18n/locales/pl/messages.po+++ b/fluxer_app/src/features/i18n/locales/pl/messages.po@@ -38987,3 +38987,38 @@ msgstr "Powiększ"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po b/fluxer_app/src/features/i18n/locales/pt-BR/messages.poindex 8c1db85a6..49045bf6f 100644--- a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po+++ b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po@@ -38987,3 +38987,38 @@ msgstr "Mais zoom"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/ro/messages.po b/fluxer_app/src/features/i18n/locales/ro/messages.poindex 4a326c822..4f74fc7b7 100644--- a/fluxer_app/src/features/i18n/locales/ro/messages.po+++ b/fluxer_app/src/features/i18n/locales/ro/messages.po@@ -38987,3 +38987,38 @@ msgstr "Mărire"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/ru/messages.po b/fluxer_app/src/features/i18n/locales/ru/messages.poindex fa20cb829..554f72d0c 100644--- a/fluxer_app/src/features/i18n/locales/ru/messages.po+++ b/fluxer_app/src/features/i18n/locales/ru/messages.po@@ -38987,3 +38987,38 @@ msgstr "Увеличить"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 дней"diff --git a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po b/fluxer_app/src/features/i18n/locales/sv-SE/messages.poindex e882ea579..02654dbd5 100644--- a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po+++ b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po@@ -38987,3 +38987,38 @@ msgstr "Zooma in"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/th/messages.po b/fluxer_app/src/features/i18n/locales/th/messages.poindex 1cf43e7fa..2c97f2518 100644--- a/fluxer_app/src/features/i18n/locales/th/messages.po+++ b/fluxer_app/src/features/i18n/locales/th/messages.po@@ -38987,3 +38987,38 @@ msgstr "ซูมเข้า"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 วันที่ผ่านมา"diff --git a/fluxer_app/src/features/i18n/locales/tr/messages.po b/fluxer_app/src/features/i18n/locales/tr/messages.poindex 5e1d0b03d..82edf9ca7 100644--- a/fluxer_app/src/features/i18n/locales/tr/messages.po+++ b/fluxer_app/src/features/i18n/locales/tr/messages.po@@ -38987,3 +38987,38 @@ msgstr "Yakınlaştır"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/uk/messages.po b/fluxer_app/src/features/i18n/locales/uk/messages.poindex 269e662ba..61ce0ac81 100644--- a/fluxer_app/src/features/i18n/locales/uk/messages.po+++ b/fluxer_app/src/features/i18n/locales/uk/messages.po@@ -38987,3 +38987,38 @@ msgstr "Збільшити"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 днів"diff --git a/fluxer_app/src/features/i18n/locales/vi/messages.po b/fluxer_app/src/features/i18n/locales/vi/messages.poindex 4ebe82397..110ff38c2 100644--- a/fluxer_app/src/features/i18n/locales/vi/messages.po+++ b/fluxer_app/src/features/i18n/locales/vi/messages.po@@ -38987,3 +38987,38 @@ msgstr "Phóng to"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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"diff --git a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po b/fluxer_app/src/features/i18n/locales/zh-CN/messages.poindex d41463ff0..967352ed6 100644--- a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po+++ b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po@@ -38987,3 +38987,38 @@ msgstr "放大"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 天"diff --git a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po b/fluxer_app/src/features/i18n/locales/zh-TW/messages.poindex 33d75b6a0..e3ad82299 100644--- a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po+++ b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po@@ -38987,3 +38987,38 @@ msgstr "放大"#: src/features/user/components/settings_utils/search_index/KeybindsIndex.ts:86msgid "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 天"diff --git a/fluxer_app/src/features/lexical/composer/LexicalMessageCommand.ts b/fluxer_app/src/features/lexical/composer/LexicalMessageCommand.tsindex 0e616feea..ec5cfc798 100644--- a/fluxer_app/src/features/lexical/composer/LexicalMessageCommand.ts+++ b/fluxer_app/src/features/lexical/composer/LexicalMessageCommand.ts@@ -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.Parseif (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.Parsereturn {type: 'ban',userId,- deleteMessageDays: Number(deleteMessageDaysText),+ deleteMessageSeconds: Number(deleteMessageSecondsText),duration: 0,};}return {type: 'ban',userId,- deleteMessageDays: Number(deleteMessageDaysText),+ deleteMessageSeconds: Number(deleteMessageSecondsText),duration: 0,reason,};diff --git a/fluxer_app/src/features/moderation/components/modals/BanMemberModal.tsx b/fluxer_app/src/features/moderation/components/modals/BanMemberModal.tsxindex 9ad3cd0cf..92f9aa59a 100644--- a/fluxer_app/src/features/moderation/components/modals/BanMemberModal.tsx+++ b/fluxer_app/src/features/moderation/components/modals/BanMemberModal.tsx@@ -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}> = obsconst 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}> = obsconst 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><RadioGrouparia-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><Inputdiff --git a/fluxer_app/src/features/moderation/constants/BanDeleteMessageOptions.ts b/fluxer_app/src/features/moderation/constants/BanDeleteMessageOptions.tsnew file mode 100644index 000000000..d3bdfaa94--- /dev/null+++ b/fluxer_app/src/features/moderation/constants/BanDeleteMessageOptions.ts@@ -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)),+);diff --git a/packages/schema/src/domains/guild/GuildRequestSchemas.ts b/packages/schema/src/domains/guild/GuildRequestSchemas.tsindex 2884e8cc4..5875e3874 100644--- a/packages/schema/src/domains/guild/GuildRequestSchemas.ts+++ b/packages/schema/src/domains/guild/GuildRequestSchemas.ts@@ -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()