Question on Delay by create_voice_channel #9755
Replies: 3 comments 5 replies
-
The API has rate limits in place to prevent abuse which control how often your bot can do certain actions, meaning the reason you're sometimes experiencing a delay of a few seconds is probably because you've recently created another channel in the same server. Note that there is AFAIK a limit on how many channels you can create / edit / delete per day as well as the limit you already in to, so this feature of yours might not work with larger or busier communities. |
Beta Was this translation helpful? Give feedback.
-
Could it be that the delay is dependend on the Size of the Server ? Shouldn't the Bot by default cache Members and Channels ? Could that be even the cause for the slow ? |
Beta Was this translation helpful? Give feedback.
-
I solved the Problem by using Bare-Metal Hardware and running the Bot there instead of inside a Docker Container. Seems like there are some problemes with running Python inside a container regarding the performance. Thank you for taking the Time and helping me out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there, i am pretty new to writing Discord Bots and just installed and used this library to make a Bot that Creates User Channels when joining a predefined Channel.
This works just fine but it sometimes has like a 4-5 second delay and i wan't to know why.
That is my Code and with lot's of testing and print statements i could pin down the delay to this one line
channel = await _SERVER.create_voice_channel( name, user_limit=max_users, category=_category )
It seems like this call sometimes takes 4-5s and sometimes just milliseconds
Is there any Reasons why this takes so long to process or is there anything i can do or provide you with?
Beta Was this translation helpful? Give feedback.
All reactions