The default error handler provided by the client.īy default this prints to sys.stderr however it could be await on_error ( event_method, * args, ** kwargs ) ¶ Typeīool: Specifies if the client’s internal cache is ready for use. On how Discord deals with private channels. This returns only up to 128 most recent private channels due to an internal working This can be useful to know when deciding whether you should query members Typeīool: Whether the websocket is currently rate limited. This could be referred to as the Discord WebSocket protocol latency. Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds. Guild – The guild with the guild data parsed. HTTPException – Getting the guilds failed. If a date is provided it must be a timezone-naive datetime representing UTC time.Īfter (Union) – Retrieve guilds after this date or object. That this would make it a slow operation.īefore (Union) – Retrieves guilds before this date or object. If None, it retrieves every guild you have access to. Limit (Optional) – The number of guilds to retrieve. flatten () # guilds is now a list of Guild. Passing in None disables the message cache. The maximum number of messages to store in the internal message cache. This class is used to interact with the Discord WebSocket and API.Ī number of options can be passed to the Client. Represents a client connection that connects to Discord. The following section outlines the API of discord.py.Ĭlass discord.
0 Comments
Leave a Reply. |