Skip to content

Converting '!jsk py' to Slash Command #240

Description

@Nzii3

I found this from the docs showing how to change the behavior of a command. But how would I convert the prefix command to a slash command since my verified bot doesn't have the message content intent?

from jishaku.features.baseclass import Feature

class CustomDebugCog(*OPTIONAL_FEATURES, *STANDARD_FEATURES):
    @Feature.Command(parent="jsk", name="python")
    async def jsk_python(self, ctx: commands.Context):
       # Do jsk py magic here to eval the code from an argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions