hikari.sessions
#
Entities directly related to creating and managing gateway shard sessions.
GatewayBotInfo #
Used to represent gateway information for the connected bot.
session_start_limit class-attribute
instance-attribute
#
session_start_limit: SessionStartLimit = field(repr=True)
Information about the bot's current session start limit.
shard_count class-attribute
instance-attribute
#
The recommended number of shards to use when connecting to the gateway.
SessionStartLimit #
Used to represent information about the current session start limits.
max_concurrency class-attribute
instance-attribute
#
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.
remaining class-attribute
instance-attribute
#
The remaining number of session starts this bot has.
reset_after class-attribute
instance-attribute
#
When hikari.sessions.SessionStartLimit.remaining
will reset for the current bot.
After it resets it will be set to hikari.sessions.SessionStartLimit.total
.
reset_at property
#
reset_at: datetime
Return the approximate time that the IDENTIFY limit resets at.
total class-attribute
instance-attribute
#
The total number of session starts the current bot is allowed.