shayypy / guilded.py

Asynchronous Guilded API wrapper for Python
https://guildedpy.rtfd.io
Other
135 stars 25 forks source link

Can't fetch users #63

Open YumYummity opened 2 months ago

YumYummity commented 2 months ago

Describe the bug Fetch users will no longer work.

To Reproduce await bot.fetch_user("valid user id")

Expected behavior To get a User object.

Actual behavior A error occurs.

Traceback (most recent call last):
  File "C:\Development\Python\Python3.10.6\lib\site-packages\guilded\client.py", line 450, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\YumYummity\Desktop\bot\guilded\Crystal\COGS\logging.py", line 1652, in on_ban_delete
    if server_data.logging.logSettings.enabled:
  File "C:\Development\Python\Python3.10.6\lib\site-packages\guilded\client.py", line 657, in getch_user
    return self.get_user(user_id) or await self.fetch_user(user_id)
  File "C:\Development\Python\Python3.10.6\lib\site-packages\guilded\client.py", line 642, in fetch_user
    data = await self.http.get_user(user_id)
  File "C:\Development\Python\Python3.10.6\lib\site-packages\guilded\http.py", line 645, in request
    raise BadRequest(response, data)
guilded.errors.BadRequest: 400 (BadRequest): You can currently only request your own user ID

Environment

Quick note: I am unable to talk in the Discord server and cannot figure out how to verify (I have unverified role-)