updated packages. fixed pnpm lock stuff.
Co-authored-by: PineappleFan <pineapplefanyt@gmail.com>
Co-authored-by: Skyler <skyler3665@gmail.com>
diff --git a/src/events/channelUpdate.ts b/src/events/channelUpdate.ts
index adfe87f..2fc2a33 100644
--- a/src/events/channelUpdate.ts
+++ b/src/events/channelUpdate.ts
@@ -4,10 +4,10 @@
import humanizeDuration from "humanize-duration";
import type { NucleusClient } from "../utils/client.js";
import getEmojiByName from "../utils/getEmojiByName.js";
-import c from "../utils/client.js";
+import client from "../utils/client.js";
import { capitalize } from "../utils/generateKeyValueList.js";
-let entry = c.logger.entry;
+let entry = client.logger.entry;
const channelTypeEmoji: Record<number, string> = {
0: "Text", // Text channel
@@ -18,7 +18,7 @@
99: "Rules" // Rules channel
};
-interface channelChanges {
+type channelChanges = {
channelId: ReturnType<typeof entry>;
channel: ReturnType<typeof entry>;
edited: ReturnType<typeof entry>;
@@ -37,11 +37,12 @@
region?: ReturnType<typeof entry>;
maxUsers?: ReturnType<typeof entry>;
autoArchiveDuration?: ReturnType<typeof entry>;
+ [key: string]: unknown;
}
export const event = "channelUpdate";
-export async function callback(client: NucleusClient, oldChannel: GuildChannel, newChannel: GuildChannel) {
+export async function callback(_client: NucleusClient, oldChannel: GuildChannel, newChannel: GuildChannel) {
const { getAuditLog, log, isLogging, NucleusColors, renderDelta, renderUser, renderChannel } = client.logger;
if (!(await isLogging(newChannel.guild.id, "channelUpdate"))) return;
const config = await client.memory.readGuildInfo(newChannel.guild.id);