auto clean whitespace
This commit is contained in:
38 files changed
+1446
-1446
No files matched your search
@@ -29,15 +29,15 @@ module.exports = {
|
||||
*/
|
||||
run: async (client, interaction, args, { GuildDB }) => {
|
||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id))
|
||||
return interaction.send({ content: `You are not allowed to use the bot in this channel.`, flags: (1 << 6) });
|
||||
|
||||
return interaction.send({ content: `You are not allowed to use the bot in this channel.`, flags: (1 << 6) });
|
||||
|
||||
// Return list of factions and their armband.
|
||||
if (!args) {
|
||||
|
||||
let factions = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setTitle('Factions & Armbands')
|
||||
|
||||
|
||||
let description = '';
|
||||
|
||||
if (GuildDB.usedArmbands.length == 0) {
|
||||
@@ -48,9 +48,9 @@ module.exports = {
|
||||
else description += `\n> <@&${factionID}> - *${data.armband}*`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
factions.setDescription(description);
|
||||
|
||||
|
||||
return interaction.send({ embeds: [factions] });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user