add missing data check

This commit is contained in:
SowinskiBraeden committed 2022-10-05 20:21:37 -07:00
1 parent 56bdecc872
commit ef72b58921
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = {
}
let guild = await client.dbo.collection("prefixes").findOne({"server.serverID":interaction.guild.id}).then(guild => guild);
if (guild.server.hasCustomChannels==false) {
if (client.exists(guild.server.hasCustomChannels) || !guild.server.hasCustomChannels) {
return interaction.send({ content: 'There are no channels set for the bot.' });
}