Core Reference¶
- discord.__version__: str¶
demoutrei.discordpackage version
- discord.DISCORD_EPOCH: int¶
Milliseconds since the first second of 2015
- class discord.Client[source]¶
Represents a Discord client.
- Parameters:
intents – Set of Gateway intents to associate with the client
- connect(*, gateway: bool = True) None[source]¶
Initiate a connection with the Discord API
- Parameters:
gateway – Join connection with the gateway
- event_listener() None[source]¶
Register a dispatch event listener
- Parameters:
name – Name of the event to listen to
- property intents: GatewayIntent¶
Set of Gateway intents to associate with the client.