mirror of https://gitlab.com/litecord/litecord.git
guild.mod: fix prune validate() inputs
This commit is contained in:
parent
1d4f99f375
commit
c93b0f1a7b
|
|
@ -171,7 +171,7 @@ async def get_guild_prune_count(guild_id):
|
|||
|
||||
await guild_perm_check(user_id, guild_id, "kick_members")
|
||||
|
||||
j = validate(request.args, GUILD_PRUNE)
|
||||
j = validate(dict(request.args), GUILD_PRUNE)
|
||||
days = j["days"]
|
||||
member_ids = await get_prune(guild_id, days)
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ async def begin_guild_prune(guild_id):
|
|||
|
||||
await guild_perm_check(user_id, guild_id, "kick_members")
|
||||
|
||||
j = validate(request.args, GUILD_PRUNE)
|
||||
j = validate(dict(request.args), GUILD_PRUNE)
|
||||
days = j["days"]
|
||||
member_ids = await get_prune(guild_id, days)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue