-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Labels
Category: Cogs - PermissionsThis is related to the Permissions cog.This is related to the Permissions cog.Status: AcceptedWe want thisWe want thisStatus: PRs WelcomeNo one is currently assigned to this issue, but we'd be grateful if anyone made a PR.No one is currently assigned to this issue, but we'd be grateful if anyone made a PR.Type: BugUnexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Milestone
Description
Command bugs
Command name
[p]permissions acl setglobal/setserver/updateglobal/updateserver
What cog is this command from?
Permissions
What were you expecting to happen?
Either get error about incorrect type of key or have Permissions automatically convert int to str.
What actually happened?
I got error "Top-level keys must be either COG or COMMAND"
How can we reproduce this issue?
- Create such yaml permissions file:
COMMAND:
8:
176070082584248320: true- Upload it using one of the commands:
[p]permissions acl setglobal/setserver/updateglobal/updateserver - See error.
The above is reproduction for issue that was already fixed, but the unrelated errors can still happen for yaml file like this:
COMMAND:
ping:
default_but_spelt_incorrectly: falseMetadata
Metadata
Assignees
Labels
Category: Cogs - PermissionsThis is related to the Permissions cog.This is related to the Permissions cog.Status: AcceptedWe want thisWe want thisStatus: PRs WelcomeNo one is currently assigned to this issue, but we'd be grateful if anyone made a PR.No one is currently assigned to this issue, but we'd be grateful if anyone made a PR.Type: BugUnexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.