fix /channels bug

This commit is contained in:
SowinskiBraeden committed 2022-11-10 20:58:22 -08:00
1 parent ef72b58921
commit d88cbb7241
2 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -23,13 +23,13 @@ module.exports = {
}
let guild = await client.dbo.collection("prefixes").findOne({"server.serverID":interaction.guild.id}).then(guild => guild);
if (client.exists(guild.server.hasCustomChannels) || !guild.server.hasCustomChannels) {
if (!GuildDB.customChannelStatus) {
return interaction.send({ content: 'There are no channels set for the bot.' });
}
let channels = ``;
for (let i = 0; i < guild.server.allowedChannels.length; i++) {
if (client.exists(guild.server.allowedChannels[i])) continue;
if (!client.exists(guild.server.allowedChannels[i])) continue;
else channels += `\n<#${guild.server.allowedChannels[i]}>`;
}
let channelsEmbed = new EmbedBuilder()