fix #3 appel command

This commit is contained in:
Mylloon 2021-05-19 09:11:11 +02:00
parent b617b37085
commit eba1de37f9

View file

@ -18,7 +18,7 @@ class School(commands.Cog):
voice_channels.extend(ctx.guild.voice_channels)
await ctx.message.add_reaction(emoji = "")
limite_voice_channels = 7
if len(voice_channels) > limite_voice_channels:
if len(voice_channels) > limite_voice_channels and not voice_channel:
return await ctx.send(f"""Désolé mais il y a plus de {limite_voice_channels} salons vocaux sur ce serveur, utilisez plutôt `{ctx.prefix}appel {{ID salon vocal}}`.
\nPour savoir comment récuperer l'id d'un salon vous pouvez faire `{ctx.prefix}getid`.""")
if voice_channel: