Compare commits
No commits in common. "d2b785207cf70c5070b2218560654e3e05a684ae" and "25159b6bc953af48cc6cdaa5d8f46e2a325553f0" have entirely different histories.
d2b785207c
...
25159b6bc9
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ class Forums(commands.Cog):
|
||||||
await msg.edit(view=self.ResolvedButtons(timeout=180, passed_info=passed_info))
|
await msg.edit(view=self.ResolvedButtons(timeout=180, passed_info=passed_info))
|
||||||
else:
|
else:
|
||||||
await ctx.message.add_reaction("❌")
|
await ctx.message.add_reaction("❌")
|
||||||
await ctx.message.delete(delay=5)
|
await ctx.message.delete(5)
|
||||||
|
|
||||||
class ResolvedButtons(ui.View):
|
class ResolvedButtons(ui.View):
|
||||||
def __init__(self, timeout, passed_info: dict):
|
def __init__(self, timeout, passed_info: dict):
|
||||||
|
@ -101,9 +101,9 @@ class Forums(commands.Cog):
|
||||||
if role_obj:
|
if role_obj:
|
||||||
already_in_list.append(role_obj.mention)
|
already_in_list.append(role_obj.mention)
|
||||||
split_content = ctx.message.content.split()
|
split_content = ctx.message.content.split()
|
||||||
command = ' '.join(split_content[:2])
|
command = split_content[:2]
|
||||||
if already_in_list:
|
if already_in_list:
|
||||||
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} 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:
|
else:
|
||||||
await ctx.send(f"No roles are currently in the allowed roles list.\nUse `{command} add` to add some!")
|
await ctx.send(f"No roles are currently in the allowed roles list.\nUse `{command} add` to add some!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue