Closed m0ssa99 closed 3 years ago
API v9 docs states that limit
and other arguments should be passed as query parameter. I tried this which worked for me.
discord.bot_request("/guilds/{GUILDID}/members", params=dict(limit=100))
Anyways about getting JSONDecodeError, as I can see its coming from simplejson.errors.JSONDecodeError
and Flask-Discord is set to use and handle exceptions of the json from the Python standard library. So I would advise to uninstall simplejson so that it uses the default json library.
If issue still persists then let me know I would fix this in upcoming updates.
I will close this issue for now. Feel free to re-open if you get any further troubles implementing the same.
i try to get a guild member, without limit parameter i get only 1 member
discord.bot_request("/guilds/{GUILDID}/members",data=dict(limit=100))
i get error simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)