diff options
| author | 2020-09-22 10:40:44 -0700 | |
|---|---|---|
| committer | 2020-09-22 10:40:44 -0700 | |
| commit | 6d9b68a0fe38fba669be242c111f5e3baac31516 (patch) | |
| tree | 966757845033c81c33099b30ae0576f96217623e | |
| parent | Replacing the round function with a format specifier. (diff) | |
Whitelisted the bot_commands channel and all staff for other channels.
| -rw-r--r-- | bot/exts/utils/ping.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/utils/ping.py b/bot/exts/utils/ping.py index e19a2c099..a9ca3dbeb 100644 --- a/bot/exts/utils/ping.py +++ b/bot/exts/utils/ping.py @@ -6,7 +6,8 @@ from discord import Embed from discord.ext import commands from bot.bot import Bot -from bot.constants import Emojis, URLs +from bot.constants import Channels, Emojis, STAFF_ROLES, URLs +from bot.decorators import in_whitelist DESCRIPTIONS = ( "Command processing time", @@ -23,6 +24,7 @@ class Latency(commands.Cog): self.bot = bot @commands.command() + @in_whitelist(channels=(Channels.bot_commands,), roles=STAFF_ROLES) async def ping(self, ctx: commands.Context) -> None: """ Gets different measures of latency within the bot. |