EQUENOS / dislash.py

A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.

Home Page:https://dislashpy.readthedocs.io/en/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local error handlers

m1raynee opened this issue · comments

commented

Local error handlers will have to work the same way as in discord.py
Minimal syntax:

@slash_commands.command(...)
async def random_command(...):
    # random stuff

@random_command.slash_error
async def some_eh(inter, error):
    # eh stuff 

how to add the labels aaa idk I'm lost

Added this feature in v1.1.0, thanks for the suggestion.