PredaaA / predacogs

Cogs for Red Discordbot
MIT License
30 stars 25 forks source link

Update nsfw.py #2

Closed Mamalus closed 5 years ago

Mamalus commented 5 years ago

Need "nsfw" role. If they don't have the nsfw role, it will not show any nsfw commands when using the "help" command.

PredaaA commented 5 years ago

As explained in DM, I can't merge this PR. Because it is checking for a role, it's a good use for one server, but not a whole bot that are on multiple servers. The main idea is to hide commands of this cog in help, which I have started on another branch. It's checking if it's a nsfw channel or not, and if not, it won't show commands in help. That's what is needed for this cog and what will come later.

NeuroAssassin commented 5 years ago

If this is necessary for your server, I would suggest making a NSFW channel, then limiting permissions to only allow people who have the NSFW role to access the channel.