Closed mammothbane closed 2 months ago
Their ctx
is not a poise::Context
, it is a serenity::client::Context
.
Whoops, just realized it's not all of them — however, several of them do have one, e.g. UnknownInteraction
, UnknownCommand
, which are what I need
Oh, nvm, understood — what I'm looking at is the framework context. Sorry for live-rubber-ducking this.
Currently
FrameworkError::ctx
has the followingmatch
case, despite the fact that some of these variants have an associatedctx
:This was unexpected — Is there a reason?
My
on_error
handler looks like: