Added options for stats channels, moderation command buttons and fixed the updating of stats channels
diff --git a/src/events/interactionCreate.ts b/src/events/interactionCreate.ts
index 900c774..eaf4fea 100644
--- a/src/events/interactionCreate.ts
+++ b/src/events/interactionCreate.ts
@@ -38,7 +38,7 @@
} else if (interaction.type === "APPLICATION_COMMAND_AUTOCOMPLETE") {
switch (`${interaction.commandName} ${interaction.options.getSubcommandGroup(false)} ${interaction.options.getSubcommand(false)}`) {
case `tag null null`: { return interaction.respond(getAutocomplete(interaction.options.getString("tag"), (await tagAutocomplete(interaction)))) }
- case `settings stats set`: { return interaction.respond(generateStatsChannelAutocomplete(interaction.options.getString("name"))) }
+ case `settings null stats`: { return interaction.respond(generateStatsChannelAutocomplete(interaction.options.getString("name"))) }
}
}
}
diff --git a/src/events/memberJoin.ts b/src/events/memberJoin.ts
index 7bee084..109f226 100644
--- a/src/events/memberJoin.ts
+++ b/src/events/memberJoin.ts
@@ -7,6 +7,7 @@
export async function callback(_, member) {
try { welcome(_, member); } catch {}
+ try { statsChannelAdd(_, member, ); } catch {}
try {
const { log, NucleusColors, entry, renderUser, renderDelta } = member.client.logger
try { await client.database.history.create("join", member.guild.id, member.user, null, null) } catch {}
@@ -32,5 +33,4 @@
}
log(data);
} catch {}
- try { statsChannelAdd(_, member, ); } catch {}
}