Client¶
Note
Keep in mind that this is not generally used by you, but rather by discord.http only.
discord_http.gateway.client module¶
- class discord_http.gateway.client.GatewayClient(bot, *, cache_flags=None, intents=None, automatic_shards=True, shard_id=None, shard_count=1, shard_ids=None, max_concurrency=None)¶
Bases:
objectRepresents the discord.http/gateway client of the bot.
- Parameters:
- bot¶
The bot instance that this gateway client belongs to.
- intents¶
The intents that the gateway client is using, or None if not specified.
- cache_flags¶
The cache flags that the gateway client is using, or None if not specified.
- automatic_shards¶
Whether to automatically determine the number of shards to launch based on the gateway response.
- shard_id¶
The shard ID to launch, or None if not specified.
- shard_count¶
The total number of shards to launch, defaults to 1.
- shard_ids¶
A list of shard IDs to launch, or None to launch all shards from 0 to shard_count - 1.
- max_concurrency¶
The maximum number of shards to launch concurrently, or None to launch all shards at once.
- async change_presence(status) None¶
Changes the presence of all shards to the specified status.
- Parameters:
status (
PlayingStatus) – The status to change to.- Return type: