move interaction

This commit is contained in:
Skillet 2023-04-26 14:36:28 -04:00
parent 50bea9570c
commit 40dd8e0c45

View File

@ -15,6 +15,7 @@ class Group(commands.Cog, name="group"):
self.client = client self.client = client
async def baseperm(self, interaction: discord.Interaction, role: discord.Role, perms: str): async def baseperm(self, interaction: discord.Interaction, role: discord.Role, perms: str):
await interaction.response.send_message("Whitelist group successfully added/updated")
if role.id in self.client.whitelistGrps.keys(): if role.id in self.client.whitelistGrps.keys():
self.client.whitelistGrps[role.id].squadPerms = perms self.client.whitelistGrps[role.id].squadPerms = perms
self.client.whitelistGrps[role.id].updateGroup() self.client.whitelistGrps[role.id].updateGroup()
@ -24,7 +25,6 @@ class Group(commands.Cog, name="group"):
name=role.name, roleID=role.id, permissions=perms name=role.name, roleID=role.id, permissions=perms
) )
await interaction.response.send_message("Whitelist group successfully added/updated")
membsup = [] membsup = []
for memb in role.members: for memb in role.members:
membsup.append(memb.id) membsup.append(memb.id)