Fix broken error handling
This commit is contained in:
2
bot.py
2
bot.py
@@ -78,7 +78,7 @@ async def on_message(message: discord.Message):
|
||||
loeh = await get_loeh(message.guild)
|
||||
if loeh is None:
|
||||
await message.channel.send('404: Löh not found!')
|
||||
if loeh.voice is None:
|
||||
elif loeh.voice is None:
|
||||
await message.channel.send('400: Löh not connected!')
|
||||
else:
|
||||
voice: discord.VoiceState = loeh.voice
|
||||
|
||||
Reference in New Issue
Block a user