mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Show info on NSFW commands
This commit is contained in:
@@ -28,7 +28,10 @@ module.exports = class HelpCommand extends Command {
|
||||
const embeds = [];
|
||||
for (let i = 0; i < Math.ceil(this.client.registry.groups.size / 10); i++) {
|
||||
const embed = new MessageEmbed()
|
||||
.setTitle(`Command List (${i + 1})`)
|
||||
.setTitle(`Command List (Page ${i + 1})`)
|
||||
.setDescription(
|
||||
msg.channel.nsfw ? 'Showing NSFW Commands.' : 'Use in an NSFW channel to see NSFW commands.'
|
||||
)
|
||||
.setColor(0x00AE86);
|
||||
embeds.push(embed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user