Skip to content

Add decorator to require server usage #178

@ndrwbrwn

Description

@ndrwbrwn

Several commands do permissions checks that fall over or behave annoyingly when they're used in DMs. (PR #176) Several more commands just generally assume they occur in servers, and may fail in spectacular ways if they aren't.

It'd be nice if we could codify this with some sort of @require_server decorator, that requires the interaction to take place inside UQCSBot.uqcs_server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementupdate an existing command or cog for some new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions