Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting '!jsk py' to Slash Command #240

Open
Nzii3 opened this issue Oct 24, 2024 · 1 comment
Open

Converting '!jsk py' to Slash Command #240

Nzii3 opened this issue Oct 24, 2024 · 1 comment

Comments

@Nzii3
Copy link

Nzii3 commented Oct 24, 2024

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
@Nzii3
Copy link
Author

Nzii3 commented Oct 27, 2024

Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant