From c23ef9e8a4c97fc6272b7a62c446b1f12130bdc9 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 20 Jun 2017 23:55:17 -0400 Subject: [commands] Add __global_check_once to list of cog functions. --- discord/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'discord') diff --git a/discord/__main__.py b/discord/__main__.py index 5f8b0daf..d40d404d 100644 --- a/discord/__main__.py +++ b/discord/__main__.py @@ -119,6 +119,10 @@ cog_extras = ''' # checks that apply to every command to the bot return True + async def __global_check_once(self, ctx): + # check that apply to every command but is guaranteed to be called only once + return True + async def __error(self, ctx, error): # error handling to every command in here pass -- cgit v1.2.3