contextMenuRun not firing
Unsure where to look or what's wrong, I had this command working a month or so ago.
The registration happens fine, and I can see the command (and see it updated), but the interaction itself just times out.
I feel I'm missing something stupid or knocked something in a merge 🫣
I referred to the docs but I have everything I need?
Any pointers as to what I'm missing or what I'm doing wrong?
4 Replies
I am also using
(Tried setting
BulkOverwrite
before and after - docs weren't clear on where that should be placed, I assume before login, so that it applies before command registration)
I found the issue, based on <#1122234565122064466> this thread.
- I have a number of Preconditions set up, that have both public override async chatInputRun
and public override async messageRun
- but did not have an override provided for public override async contextMenuRun
I had to add this to all preconditions for the context menu command to work.
Couldn't find anything in the docs that suggested that the all preconditions must explicitly provide a handler for all command types, else the command type wouldn't work.
Might be a good idea to add this to the doc? @FavnaAlways open to PRs
I'd be very happy to contribute, would you mind pointing me to the correct repo if I were to include this in any relevant spots of the guide or documentation?
https://github.com/sapphiredev/website/blob/main/docs/Guide/preconditions/creating-your-own-preconditions.mdx
Make sure when cloning to add
--recurse-submodules
GitHub
website/docs/Guide/preconditions/creating-your-own-preconditions.md...
Documentation for Sapphire Project. Contribute to sapphiredev/website development by creating an account on GitHub.