hikari.sessions#
Entities directly related to creating and managing gateway shard sessions.
Module Contents#
- class hikari.sessions.GatewayBotInfo[source]#
Used to represent gateway information for the connected bot.
- session_start_limit: SessionStartLimit[source]#
Information about the bot’s current session start limit.
- class hikari.sessions.SessionStartLimit[source]#
Used to represent information about the current session start limits.
- property reset_at: datetime.datetime[source]#
Return the approximate time that the IDENTIFY limit resets at.
- max_concurrency: int[source]#
Maximum connection concurrency.
This defines how many shards can be started at once within a 5 second window. For most bots, this will always be
1
, but for very large bots, this may be increased to reduce startup times. Contact Discord for more information.
- reset_after: datetime.timedelta[source]#
When
SessionStartLimit.remaining
will reset for the current bot.After it resets it will be set to
SessionStartLimit.total
.