Core Reference¶
- class discord.Client[source]¶
Represents a Discord client.
- Parameters:
intents – Set of Gateway intents to associate with the client
- property _http: HTTP¶
HTTP/S connection instance to the Discord API
- @event_listener(name)¶
Register a dispatch event listener
- Parameters:
name – Name of the event to listen to
- connect(*, gateway: bool = True) None[source]¶
Initiate a connection with the Discord API
- Parameters:
gateway – Join connection with the gateway
- property intents: GatewayIntent¶
Set of Gateway intents to associate with the client.