Discord-S.C.U.M icon indicating copy to clipboard operation
Discord-S.C.U.M copied to clipboard

Can't get user info

Open ahihiyou20 opened this issue 3 years ago • 3 comments

ahihiyou20 avatar Feb 14 '22 09:02 ahihiyou20

So im trying to get user's username and id using:

bot.gateway.session.user['id']

token and another information provied tho.

And i got this error while running:

Exception ignored in thread started by: <bound method GatewayServer._response_loop of <discum.gateway.gateway.GatewayServer object at 0x7d51fe1b90>>
Traceback (most recent call last):
  File "/data/data/files/usr/lib/python3.10/site-packages/discum/gateway/gateway.py", line 296, in _response_loop
    func(resp)
  File "/data/data/files/home/test.py", line 153, in on_ready
    user = bot.gateway.session.user
  File "/data/data/files/usr/lib/python3.10/site-packages/discum/gateway/session.py", line 42, in user
    return self.settings_ready['user']
KeyError: 'user'

I swear i connected to the gateway and somehow i got that error while running.

ahihiyou20 avatar Feb 14 '22 09:02 ahihiyou20

some issue, pls fix this error

Ninutes avatar Aug 09 '22 06:08 Ninutes

Someone???

JuliaYuki avatar Jun 21 '23 01:06 JuliaYuki