Fixed a lot of commands, 0 typing errors on those changed
diff --git a/src/utils/singleNotify.ts b/src/utils/singleNotify.ts
index 8f011e3..e762487 100644
--- a/src/utils/singleNotify.ts
+++ b/src/utils/singleNotify.ts
@@ -16,6 +16,7 @@
severity: "Critical" | "Warning" | "Info" = "Info"
) {
const data = await client.database.guilds.read(guild);
+ if (data.logging.staff.channel === null) return;
if (message === true) {
return await client.database.guilds.write(guild, {
[`singleEventNotifications.${type}`]: false
@@ -28,6 +29,7 @@
try {
const channel = await client.channels.fetch(data.logging.staff.channel);
if (!channel) return;
+ if (!channel.isTextBased()) return;
await channel.send({
embeds: [
new EmojiEmbed()