role handler used wrong propety to access context.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6d602f0a47
commit
27254e50e9
|
@ -474,7 +474,7 @@ class SelfRoles(Extension):
|
||||||
|
|
||||||
@listen(events.Select)
|
@listen(events.Select)
|
||||||
async def on_role_selected(self, event: events.Select):
|
async def on_role_selected(self, event: events.Select):
|
||||||
ctx = event.context
|
ctx = event.ctx
|
||||||
await ctx.defer(ephemeral=True)
|
await ctx.defer(ephemeral=True)
|
||||||
|
|
||||||
if not ctx.custom_id.startswith("role-group-assign"):
|
if not ctx.custom_id.startswith("role-group-assign"):
|
||||||
|
|
Loading…
Reference in New Issue