#[v4] nothing works

1 messages · Page 1 of 1 (latest)

dapper lantern
#

for some reason interactions.py stopped working for me. i tried using another bot i made using interactions.py but it throws same error.

is it happening to everyone or is it just me?

unkempt trellisBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

dapper lantern
#

here is some part of error:

The HTTP client has exhausted a per-route ratelimit. Locking route for 0.999 seconds.
Websocket have raised an exception, closing.
Traceback (most recent call last):
  File "C:\Users\newpc\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\connector.py", line 1152, in _create_direct_connection
    hosts = await asyncio.shield(host_resolved)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\newpc\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\connector.py", line 874, in _resolve_host
    addrs = await self._resolver.resolve(host, port, family=self._family)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\newpc\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\resolver.py", line 33, in resolve
    infos = await self._loop.getaddrinfo(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#

im going to try restarting my pc and see if it works

#

idk how it will help

shrewd wigeon
#

also wrong forum

#

[v4] nothing works

dapper lantern
#

Now my discord on pc Is stuck in the loading screen

#

nevermind i restarted discord and its working now

#

i reinstalled library and now it throws other error instead

#
Traceback (most recent call last):
  File "c:\Users\newpc\OneDrive\Desktop\COOL manager\main.py", line 6, in <module>
    bot = interactions.Client(token, intents=interactions.Intents.ALL)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Client.__init__() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given
#

it wasnt showing me this error before

shrewd wigeon
#

Did you just install v5?

dapper lantern
#

idk i just did

pip uninstall discord-py-interactions
pip install discord-py-interactions

#

discord-py-interactions 5.2.0

yeah

#

i have v5

dapper lantern
shrewd wigeon
#

and rewrite your bot

dapper lantern
#

i give up rewriting my bot

#

it has many commands

#

how to downgrade to v4

shrewd wigeon
#

discord-py-interactions==4.4.1