def register(self, command, func):
logger.debug('Registering slash command: %s, %s from %s',
command,
func.__name__,
inspect.getabsfile(func))
if not asyncio.iscoroutinefunction(func):
func = asyncio.coroutine(func)
self._endpoints[command] = func
评论列表
文章目录