From 25159b6bc953af48cc6cdaa5d8f46e2a325553f0 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Sep 2023 20:08:22 -0400 Subject: [PATCH] fix(forums): changed how the commands are shown in resolvedset role --- forums/forums.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/forums/forums.py b/forums/forums.py index fbf254b..e4b1ccb 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -100,10 +100,12 @@ class Forums(commands.Cog): role_obj = ctx.guild.get_role(role_id) if role_obj: already_in_list.append(role_obj.mention) + split_content = ctx.message.content.split() + command = split_content[:2] if already_in_list: - await ctx.send("Roles already in the allowed roles list:\n" + "\n".join(already_in_list) + f"\nUse `{ctx.prefix}resolvedset role add` to add roles to this list.\nUse `{ctx.prefix}resolvedset role remove` to remove roles from this list.", allowed_mentions=discord.AllowedMentions(roles=False)) + await ctx.send("Roles already in the allowed roles list:\n" + "\n".join(already_in_list) + f"\nUse `{command} add` to add roles to this list.\nUse `{command} role remove` to remove roles from this list.", allowed_mentions=discord.AllowedMentions(roles=False)) else: - await ctx.send(f"No roles are currently in the allowed roles list.\nUse `{ctx.prefix}resolvedset role add` to add some!") + await ctx.send(f"No roles are currently in the allowed roles list.\nUse `{command} add` to add some!") @resolvedset_role.command(name='add') @commands.guild_only()