Browse Source

pass bot instance to commands_level_getter

feature/docs
Andrei 8 years ago
parent
commit
cc012cd274
  1. 2
      disco/bot/bot.py

2
disco/bot/bot.py

@ -295,7 +295,7 @@ class Bot(LoggingClass):
level = CommandLevels.DEFAULT
if callable(self.config.commands_level_getter):
level = self.config.commands_level_getter(actor)
level = self.config.commands_level_getter(self, actor)
else:
if actor.id in self.config.levels:
level = self.config.levels[actor.id]

Loading…
Cancel
Save