Fix casing issue
This commit is contained in:
2
bot.py
2
bot.py
@@ -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!")
|
||||||
|
|||||||
Reference in New Issue
Block a user