mirror of
https://github.com/AsgardEternal/DiscordWhitelist.git
synced 2024-12-28 21:19:14 -06:00
move interaction
This commit is contained in:
parent
50bea9570c
commit
40dd8e0c45
@ -15,6 +15,7 @@ class Group(commands.Cog, name="group"):
|
||||
self.client = client
|
||||
|
||||
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():
|
||||
self.client.whitelistGrps[role.id].squadPerms = perms
|
||||
self.client.whitelistGrps[role.id].updateGroup()
|
||||
@ -24,7 +25,6 @@ class Group(commands.Cog, name="group"):
|
||||
name=role.name, roleID=role.id, permissions=perms
|
||||
)
|
||||
|
||||
await interaction.response.send_message("Whitelist group successfully added/updated")
|
||||
membsup = []
|
||||
for memb in role.members:
|
||||
membsup.append(memb.id)
|
||||
|
Loading…
Reference in New Issue
Block a user