Modify Guild lib. Remove async from get_guild method
This commit is contained in:
parent
1ce6b538ae
commit
e018090af6
|
|
@ -5,7 +5,7 @@ class Guilds:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def get_guild(self, bot: commands.Bot) -> discord.Guild:
|
def get_guild(self, bot: commands.Bot) -> discord.Guild:
|
||||||
guild = None
|
guild = None
|
||||||
for g in bot.guilds:
|
for g in bot.guilds:
|
||||||
if bot.dev_mode and g.name == 'OgmaBotDev':
|
if bot.dev_mode and g.name == 'OgmaBotDev':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue