@@ -36,8 +36,8 @@ class Client(BaseClient):
3636 Your own event loop (if you have one) that PyPresence should use. One will be created if not supplied.
3737 Information at https://docs.python.org/3/library/asyncio-eventloop.html
3838 handler : function, optional
39- The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
40- standard function as long as it takes two arguments (exception, future). Exception will be the
39+ The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
40+ standard function as long as it takes two arguments (exception, future). Exception will be the
4141 exception to handle and future will be an instance of asyncio.Future
4242
4343 Examples
@@ -47,6 +47,7 @@ class Client(BaseClient):
4747 >>> RPC.start()
4848 >>> RPC.set_activity(state="Playing a game", details="In the main menu")
4949 """
50+
5051 def __init__ (self , * args , ** kwargs ):
5152 super ().__init__ (* args , ** kwargs )
5253 self ._closed = False
@@ -165,7 +166,7 @@ def authorize(self, client_id: str, scopes: List[str]):
165166 client_id : str
166167 OAuth2 application id
167168 scopes : list of str
168- A list of OAuth scopes as strings.
169+ A list of OAuth scopes as strings.
169170 All scopes can be found at https://discord.com/developers/docs/topics/oauth2
170171
171172 Returns
@@ -423,7 +424,7 @@ def set_activity(
423424 match : str, optional
424425 Unique hashed string for spectate and join
425426 buttons : list, optional
426- List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
427+ List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
427428 can list up to two buttons
428429 instance : bool, optional
429430 Marks the match as a game session with a specific beginning and end. Defaults to True.
@@ -712,7 +713,7 @@ class AioClient(BaseClient):
712713 Information at https://docs.python.org/3/library/asyncio-eventloop.html
713714 handler : function, optional
714715 The exception handler pypresence should send asynchronous errors to. This must be a coroutine
715- that takes two arguments (exception, future). Exception will be the exception to handle and
716+ that takes two arguments (exception, future). Exception will be the exception to handle and
716717 future will be an instance of asyncio.Future
717718
718719 Examples
@@ -726,6 +727,7 @@ class AioClient(BaseClient):
726727 ... RPC.close()
727728 >>> asyncio.run(main())
728729 """
730+
729731 def __init__ (self , * args , ** kwargs ):
730732 super ().__init__ (* args , ** kwargs , isasync = True )
731733 self ._closed = False
0 commit comments