style: format code for improved readability and consistency across multiple files

This commit is contained in:
MythEclipse
2026-05-31 16:54:15 +07:00
parent f224be2a66
commit 30ce607d88
14 changed files with 131 additions and 57 deletions
+3 -7
View File
@@ -1,8 +1,8 @@
import type { Client, PermissionString } from "discord.js-selfbot-v13";
import { config } from "../config.js";
import { createChildLogger } from "../logger.js";
import type { MessageRecord } from "./types.js";
import { createModerationAction } from "./messageStore.js";
import type { MessageRecord } from "./types.js";
const logger = createChildLogger("auto-delete-manager");
@@ -183,9 +183,7 @@ function isAlreadyDeletedError(error: unknown): boolean {
return code === 10008 || code === 404 || code === "10008" || code === "404";
}
function hasChannelMessagesApi(
channel: unknown,
): channel is {
function hasChannelMessagesApi(channel: unknown): channel is {
messages: {
fetch: (id: string) => Promise<{ delete: () => Promise<unknown> }>;
};
@@ -200,9 +198,7 @@ function hasChannelMessagesApi(
);
}
function hasPermissionApi(
channel: unknown,
): channel is {
function hasPermissionApi(channel: unknown): channel is {
permissionsFor: (
member: unknown,
) => { has: (permission: string) => boolean } | null;