[Admin] Add [p]selfroleset clear command #5387

Merged
Kreusada merged 6 commits from patch-75 into V3/develop 2021-10-17 18:51:05 +02:00
Kreusada commented 2021-10-13 17:37:40 +02:00 (Migrated from github.com)

Description of the changes

This PR adds [p]selfroleset clear which can be used to clear the guild's list of available selfroles.

### Description of the changes This PR adds `[p]selfroleset clear` which can be used to clear the guild's list of available selfroles.
Vexed01 (Migrated from github.com) reviewed 2021-10-13 21:54:12 +02:00
@ -509,6 +510,40 @@ class Admin(commands.Cog):
Vexed01 (Migrated from github.com) commented 2021-10-13 21:54:12 +02:00

It might be worth mentioning the whole clear operation was aborted as it is currently ambiguous as to whether this aborted the operation completely or cleared everything except the mentioned role. This sentence is a little long now so feel free ignore the suggestion and reword if you can think of something better than me.

                            "I cannot clear selfroles because I cannot let you remove {role.name} from being a selfrole because that role is higher than or equal to your highest role in the Discord hierarchy."
It might be worth mentioning the whole clear operation was aborted as it is currently ambiguous as to whether this aborted the operation completely or cleared everything except the mentioned role. This sentence is a little long now so feel free ignore the suggestion and reword if you can think of something better than me. ```suggestion "I cannot clear selfroles because I cannot let you remove {role.name} from being a selfrole because that role is higher than or equal to your highest role in the Discord hierarchy." ```
PredaaA (Migrated from github.com) approved these changes 2021-10-17 18:50:53 +02:00
PredaaA (Migrated from github.com) left a comment

Looks good. Thanks!

Looks good. Thanks!
red-githubbot[bot] commented 2021-10-17 18:51:07 +02:00 (Migrated from github.com)

Thanks Kreusada for the PR 🎉. I'm working now to backport this PR to: 3.4.

Thanks Kreusada for the PR 🎉. I'm working now to backport this PR to: 3.4.
red-githubbot[bot] commented 2021-10-17 18:51:13 +02:00 (Migrated from github.com)

#5409 is a backport of this pull request to Red 3.4.

#5409 is a backport of this pull request to [Red 3.4](https://github.com/Cog-Creators/Red-DiscordBot/tree/3.4).
Sign in to join this conversation.
No reviewers
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!5387
No description provided.