From 55e258513b49bc005fe9e279eb3d29a3cc775560 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 19 Jan 2021 11:26:39 +0100 Subject: [PATCH] Make get_loeh private --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 21c5a4e..83d8f2f 100644 --- a/bot.py +++ b/bot.py @@ -53,7 +53,7 @@ if 'LIBOPUS' in os.environ and not len(os.environ['LIBOPUS']) == 0: discord.opus.load_opus(os.environ['LIBOPUS']) -async def get_loeh(guild: discord.Guild) -> Optional[discord.Member]: +async def _get_loeh(guild: discord.Guild) -> Optional[discord.Member]: try: return await guild.fetch_member(LOEH_ID) except discord.NotFound: @@ -78,7 +78,7 @@ async def on_message(message: discord.Message): await message.channel.send('429: Too many requests') return last_och = t - loeh = await get_loeh(message.guild) + loeh = await _get_loeh(message.guild) if loeh is None: await message.channel.send('404: Löh not found!') elif loeh.voice is None: