aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar SebastiaanZ <[email protected]>2019-01-18 22:29:42 +0100
committerGravatar SebastiaanZ <[email protected]>2019-01-18 22:29:42 +0100
commitc0b0d2bb1aac8f9f8622a9de38c56610abf05268 (patch)
tree70533d8dd983424af90f2a2d744a257834df47c2
parentAdding 'redirect_output' decorator to bot/decorators.py (diff)
Redirecting output of help of regular users to bot-commands
-rw-r--r--bot/cogs/help.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/help.py b/bot/cogs/help.py
index ded068123..2168e2a60 100644
--- a/bot/cogs/help.py
+++ b/bot/cogs/help.py
@@ -10,6 +10,8 @@ from discord.ext.commands import CheckFailure
from fuzzywuzzy import fuzz, process
from bot import constants
+from bot.constants import Roles
+from bot.decorators import redirect_output
from bot.pagination import (
DELETE_EMOJI, FIRST_EMOJI, LAST_EMOJI,
LEFT_EMOJI, LinePaginator, RIGHT_EMOJI,
@@ -23,7 +25,7 @@ REACTIONS = {
LAST_EMOJI: 'end',
DELETE_EMOJI: 'stop'
}
-
+STAFF_ROLES = Roles.helpers, Roles.moderator, Roles.admin, Roles.owner
Cog = namedtuple('Cog', ['name', 'description', 'commands'])
@@ -652,6 +654,7 @@ class Help:
Custom Embed Pagination Help feature
"""
@commands.command('help')
+ @redirect_output(constants.Channels.bot, STAFF_ROLES)
async def new_help(self, ctx, *commands):
"""
Shows Command Help.