-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
@useCog(myCog="MyCog")
@BasedCog.staticComponentCallback(StaticComponents.My_Component)
async def myComponentCallback(self, interaction: Interaction, args: str, myCog: MyCog):
myCog.doStuff()wrap function in another
try to get a cog called myCog
if you can't get it then make a log with the name of the wrapped function and the cog name, then return
if you can the cog then call the wrapped function
should work for any function in a cog, e.g static component callback or command
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request