Merge branch 'dev' into database-rewrite

This commit is contained in:
2021-11-22 10:53:00 +01:00
4 changed files with 20 additions and 19 deletions
+7
View File
@@ -1,3 +1,4 @@
import asyncio
from typing import Dict
from discord.ext.commands import Cog
@@ -13,3 +14,9 @@ class BaseCog(Cog):
for command in self.walk_commands():
if brief := slash_descriptions.get(command.qualified_name):
command.brief = brief
def is_lavalink_ready(self) -> bool:
return (
hasattr(self.bot, "lavalink")
and len(self.bot.lavalink.node_manager.available_nodes) > 0
)