role handler used wrong propety to access context.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Vegard Berg 2023-02-24 12:53:38 +01:00
parent 6d602f0a47
commit 27254e50e9
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ class SelfRoles(Extension):
@listen(events.Select)
async def on_role_selected(self, event: events.Select):
ctx = event.context
ctx = event.ctx
await ctx.defer(ephemeral=True)
if not ctx.custom_id.startswith("role-group-assign"):