Victoria Casasampere Fernandez

Results 42 comments of Victoria Casasampere Fernandez

I remember it was for guilds with an ID that's 17 characters long or where the first 2 numbers are under or equal to 20 (if 18 in lenght) and...

https://gitlab.com/vicky5124/lavalink-rs/-/blob/master/examples/poise_basic_queue/src/main.rs#L151-188 This is how I do it with poise, if it helps.

Guild is obtained on startup, make sure you have the basic GUILDS intent enabled, and that the `cache_ready` event fired up. Also, there were issues building cache on past versions,...

The intents or cache documentation should be updated noting which cache elements will become available with each intent, and not only for this use case.

https://serenity-rs.github.io/serenity/current/serenity/model/gateway/struct.SessionStartLimit.html You could probably be clever with this, and close the session if the number of allowed sessions is below the max-1

What would be ideal is for serenity to support the gateway return value that tells you how many connections you have right now; i have seen it on other libraries...

https://github.com/hikari-py/hikari/blob/b33a5c7b392d9de0afdeb271940c81865aaf252f/hikari/impl/bot.py#L1040 @kangalioo

Tracking within 4 hours is still nice to have, usually when multiple sessions are an issue is when you are testing the bot, and previous sessions are left open by...

I don't know this library specifically, or how it works, but it looks like it's running the command functions in a different system thread than the one tokio is running...

Sadly, you can't use the standard framework for this, as all the commands are made at compile time and stored in the framework as 'static, you will have to either...