Skip to content

Jail does not respect role hierarchy #1227

@Vuks69

Description

@Vuks69

Bug Report

Describe the Bug

Jail command allowed a Moderator to jail a Senior Moderator.

To Reproduce

Steps to reproduce the behavior:

  1. Issue a jail command against a senior moderator as a regular moderator

Expected Behavior

An error message saying you can't jail a role that is higher than your own highest role.

Screenshots

https://discord.com/channels/1172245377395728464/1176214426169397389/1487568701455597719

Image

Environment (please complete the following information)

n/a

Additional Context

Might instead be a misconfiguration, but I'm doubtful about that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions