The mfa_level requirement of a guild can be set to true or false, when it should be restricted to 0 or 1. This breaks api clients which expect the level to be 0 or 1, and not a boolean.
This will set the level to true for that guild, when it should be 1 or 0.
Expected Behavior
API should return {"message": "Invalid MFA Level", "code": 50017}
Current Behavior
The api sets the mfa level to true, which is invalid. Additionally makes the guild object have the mfa level set to true on subsequent requests, which breaks client which expect the level to be 0 or 1.
Description
The mfa_level requirement of a guild can be set to
true
orfalse
, when it should be restricted to 0 or 1. This breaks api clients which expect the level to be 0 or 1, and not a boolean.Steps to Reproduce
This will set the level to
true
for that guild, when it should be 1 or 0.Expected Behavior
API should return
{"message": "Invalid MFA Level", "code": 50017}
Current Behavior
The api sets the mfa level to true, which is invalid. Additionally makes the guild object have the mfa level set to true on subsequent requests, which breaks client which expect the level to be 0 or 1.
Screenshots/Videos
No response
Client and System Information