Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.
MIT License
586 stars 168 forks source link

KeyError #384

Open norhu1130 opened 2 years ago

norhu1130 commented 2 years ago

Traceback (most recent call last): File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped ret = await coro(*args, **kwargs) File "All_users_mention.py", line 216, in dm await dm_send(str(server),str(chan),inv,msg) File "All_users_mention.py", line 159, in dm_send members = get_members(guild_id=guild_id, channel_id=channel_id) File "All_users_mention.py", line 158, in get_members return bot.gateway.session.guild(guild_id).members File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\discum\gateway\session.py", line 239, in members return Session.settings_ready['guilds'][self.guildID]['members'] KeyError: "<Message id=990302512957505561 channel= type=<MessageType.default: 0> author=<Member id=853561869008502816 name='Unknownuser' discriminator='5927' bot=False nick=None guild=> flags=>"


arandomnewaccount: from the error, I see you're inputting <Message id=990302512957505561 channel= type=<MessageType.default: 0> author=<Member id=853561869008502816 name='Unknownuser' discriminator='5927' bot=False nick=None guild=> flags=> as the key whereas the guildID is a string discord snowflake (looks like "987391264545917011")

Lofimit commented 2 years ago

Please fix this, same issue here.

Daddy-Talpapa commented 2 years ago

bump