mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
Privatize APIs by renaming or removing them from __all__ (#6021)
This commit is contained in:
8
redbot/core/_global_checks.py
Normal file
8
redbot/core/_global_checks.py
Normal file
@@ -0,0 +1,8 @@
|
||||
"""The checks in this module run on every command."""
|
||||
from . import commands
|
||||
|
||||
|
||||
def init_global_checks(bot):
|
||||
@bot.check_once
|
||||
async def check_message_is_eligible_as_command(ctx: commands.Context) -> bool:
|
||||
return await ctx.bot.message_eligible_as_command(ctx.message)
|
||||
Reference in New Issue
Block a user