Skip to content

Make cog_check work like permissions decorator for slash commands #495

@pandabear189

Description

@pandabear189

Summary

Making cog_check do the same thing as @permissions-deco in slash cogs

What is the feature request for?

discord.ext.commands

The Problem

everything becomes a lot easier when you have a moderation cog and when everything needs a decorator, it becomes quite annoying. It would be easier if the @permissions.has_any_role could be implemented into cog_check or a new method like slash_cog_check that would only apply to slash commands.

The Ideal Solution

Make it easier for permissions to be set

The Current Solution

add support for cog_check to slash commands

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions