i have not committed in years
diff --git a/src/automations/statsChannelRemove.ts b/src/automations/statsChannelRemove.ts
index 42ec580..4b24768 100644
--- a/src/automations/statsChannelRemove.ts
+++ b/src/automations/statsChannelRemove.ts
@@ -1,8 +1,9 @@
import log from '../utils/log.js'
import readConfig from '../utils/readConfig.js'
import convertCurlyBracketString from '../utils/convertCurlyBracketString.js'
+import singleNotify from '../utils/singleNotify.js';
-export async function callback(_, member) {
+export async function callback(interaction, member) {
let config = await readConfig(member.guild.id);
config.stats.forEach(async element => {
@@ -13,7 +14,12 @@
let channel = await member.client.channels.fetch(element.channel)
if (channel.guild.id !== member.guild.id) return
- if (!channel) return // TODO: Notify mods
+ if (!channel) return await singleNotify(interaction.client,
+ "statsChannelDeleted",
+ member.guild.id,
+ "The stats channel has been deleted. Please set a new channel to use this feature.",
+ "Critical"
+ )
try {
await channel.edit({ name: string })
} catch (err) {