Skip to content

[ext.bridge] Allow for local error handling w/ bridge commands. #1388

@ghost

Description

Summary

Allowing for errors raised inside of bridge commands to be handled locally.

What is the feature request for?

discord.ext.bridge

The Problem

When writing bridge commands, no error handler can be directly attached to the command.
An error handler of such should look like this: @bridge_command_name.error
Currently, however, doing so raises the following error: AttributeError: 'BridgeCommand' object has no attribute 'error'

The Ideal Solution

The ideal solution is being able to have the same syntax as other types of commands where error handlers can be attached directly to the BridgeCommand. This would look the same way as the previous: @bridge_command_name.error

The Current Solution

The current solution is to handle all errors within the respective on_command_error and on_application_command_error events globally.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions