debug channels command
This commit is contained in:
1 file changed
+2
-3
@@ -29,15 +29,14 @@ module.exports = {
|
|||||||
|
|
||||||
let channels = ``;
|
let channels = ``;
|
||||||
for (let i = 0; i < guild.server.allowedChannels.length; i++) {
|
for (let i = 0; i < guild.server.allowedChannels.length; i++) {
|
||||||
if (guild.server.allowedChannels[i] == undefined) break;
|
if (client.exists(guild.server.allowedChannels[i])) continue;
|
||||||
if (channels.length==0) channels += `<#${guild.server.allowedChannels[i]}>`;
|
|
||||||
else channels += `\n<#${guild.server.allowedChannels[i]}>`;
|
else channels += `\n<#${guild.server.allowedChannels[i]}>`;
|
||||||
}
|
}
|
||||||
let channelsEmbed = new MessageEmbed()
|
let channelsEmbed = new MessageEmbed()
|
||||||
.setColor('#0099ff')
|
.setColor('#0099ff')
|
||||||
.setDescription('**Allowed Channels to use the Bot**')
|
.setDescription('**Allowed Channels to use the Bot**')
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: `There are currently ${guild.server.allowedChannels.length} allowed channels.`, value: `${channels}`, inline: true },
|
{ name: `There are currently ${guild.server.allowedChannels.length} allowed channels.`, value: `Channels:${channels}`, inline: true },
|
||||||
)
|
)
|
||||||
.setFooter('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t')
|
.setFooter('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t')
|
||||||
return interaction.send({ embeds: [channelsEmbed] });
|
return interaction.send({ embeds: [channelsEmbed] });
|
||||||
|
|||||||
Reference in new issue
Block a user