From 9d5416a7c5fac31c2b090aa64285a9bb9613aa0d Mon Sep 17 00:00:00 2001 From: EdVraz <88881326+EdVraz@users.noreply.github.com> Date: Fri, 12 Nov 2021 21:16:27 +0100 Subject: [PATCH] bugfix - fixes small mistake in role edit --- cogs/server_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/server_utils.py b/cogs/server_utils.py index 1d39982..53896c3 100644 --- a/cogs/server_utils.py +++ b/cogs/server_utils.py @@ -980,7 +980,7 @@ async def _role_edit(self, ctx: SlashContext, role: discord.Role, name: str = No components=[perm_ar] ) await role.edit(permissions=roleperm, name=name, hoist=hoist, mentionable=mentionable, colour=color) - await perm.origin_message.edit(content="Done") + await perm.origin_message.channel.send(content="Done") return else: @@ -1011,7 +1011,7 @@ async def _role_edit(self, ctx: SlashContext, role: discord.Role, name: str = No ) await role.edit(name=name, color=color, permissions=roleperm, hoist=hoist, mentionable=mentionable) - await ctx.channel.send("Done") + await admin.origin_message.channel.send("Done") return else: @@ -1021,14 +1021,14 @@ async def _role_edit(self, ctx: SlashContext, role: discord.Role, name: str = No sel2row["components"][0]["disabled"] = True - secondperms.edit_origin( + await secondperms.edit_origin( components=[sel2row], content="Edting role to your input....." ) await role.edit(name=name, hoist=hoist, colour=color, mentionable=mentionable, permissions=roleperm) - await secondperms.origin_message.edit(content="Done") + await secondperms.origin_message.channel.send(content="Done") except ValueError: # on timeout no values returned, just do nothing then return