Skip to content

Commit

Permalink
Merge pull request #31 from EdVraz/master
Browse files Browse the repository at this point in the history
a
  • Loading branch information
EepyElvyra authored Nov 12, 2021
2 parents 16d92d1 + 4d24b4c commit 7ae6b64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cogs/server_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 7ae6b64

Please sign in to comment.