cacassetout #1

Manually merged
fomys merged 15 commits from cacassetout into master 2020-04-24 23:41:36 +02:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit e48f74e592 - Show all commits

View File

@ -207,10 +207,10 @@ class BotBase(discord.Client):
self.error(f"Error in {event_method}: \n{exc}")
# Logging
def info(self, *args, **kwargs):
def info(self, info, *args, **kwargs):
if self.log:
self.log.info(*args, **kwargs)
self.dispatch("log_info", *args, **kwargs)
self.log.info(info, *args, **kwargs)
self.dispatch("log_info", info, *args, **kwargs)
def error(self, e, *args, **kwargs):
if self.log:

View File

@ -36,7 +36,8 @@ class Channel(BaseType):
self._update()
def get(self):
self._update()
if self.channel_instance is None:
self._update()
return self.channel_instance or self.value
def to_save(self):