def new_guild(self, guild):
"""Creates a new Dwarf ?Guild? object and connects it to the database.
Parameters
----------
guild
Can be a Discord ?Server? object or a guild ID.
"""
if isinstance(guild, discord.Server):
return Guild(id=guild.id)
else:
return Guild(id=guild)
评论列表
文章目录