Fix casing issue

This commit is contained in:
2021-03-12 19:17:40 +01:00
parent 8ffafcf51d
commit c028ed56cb

2
bot.py
View File

@@ -515,7 +515,7 @@ async def groupvc_command(ctx: commands.Context):
if ctx.channel.category is not None: if ctx.channel.category is not None:
guild: discord.Guild = ctx.guild guild: discord.Guild = ctx.guild
channel: discord.TextChannel = ctx.channel channel: discord.TextChannel = ctx.channel
if channel.category.name.lower() == config_get("groups-category", guild.id): if channel.category.name.lower() == config_get("groups-category", guild.id).lower():
role = await find_role_case_insensitive(guild, channel.name, config_get("groups-role-prefix", guild.id)) role = await find_role_case_insensitive(guild, channel.name, config_get("groups-role-prefix", guild.id))
if role is None: if role is None:
await ctx.send("Couldn't resolve group role!") await ctx.send("Couldn't resolve group role!")