-
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed what is that? |
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Oct 16, 2020
Replies: 2 comments 2 replies
-
C:\Users\me\Files\Discord server (IMP)\Edgar the bot>C:/Users/me/AppData/Local/Programs/Python/Python38/python.exe "c:/Users/me/Files/Discord server (IMP)/Edgar the bot/Main.py"
Traceback (most recent call last):
File "c:/Users/me/Files/Discord server (IMP)/Edgar the bot/Main.py", line 108, in <module>
bot.run(token)
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\client.py", line 708, in run
return future.result()
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\client.py", line 687, in runner
await self.start(*args, **kwargs)
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\client.py", line 651, in start
await self.connect(reconnect=reconnect)
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\client.py", line 586, in connect
raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x0000026462F60790>
Traceback (most recent call last):
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon
self._check_closed()
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed |
Beta Was this translation helpful? Give feedback.
2 replies
-
Enabling Intents in the discord developer portal will do the job |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enabling Intents in the discord developer portal will do the job