def notify(self, text, options={}):
if 'channel' in options:
channel_id = options['channel_id']
else:
channel_id = self.channel_id
self.client = discord.Client()
loop = asyncio.get_event_loop()
loop.run_until_complete(self._send_message(channel_id, text))
self.client = None
评论列表
文章目录