Skip to content

Client

Module containing the client interfacing for interactions.

Client

The client interface for interacting with the Ravy API.

Attributes:

Name Type Description
closed bool

Whether or not the client is closed.

avatars Avatars

The avatars endpoint.

guilds Guilds

The guilds endpoint.

ksoft KSoft

The ksoft endpoint.

users Users

The users endpoint.

urls URLs

The urls endpoint.

tokens Tokens

The tokens endpoint.

avatars property

avatars: Avatars

The avatars endpoint.

closed property

closed: bool

Whether or not the client is closed.

guilds property

guilds: Guilds

The guilds endpoint.

ksoft property

ksoft: KSoft

The ksoft endpoint.

tokens property

tokens: Tokens

The tokens endpoint.

urls property

urls: URLs

The urls endpoint.

users property

users: Users

The users endpoint.

__init__

__init__(token: str) -> None

Parameters:

Name Type Description Default
token str

The token used to authenticate with the API.

required

close async

close() -> None

Closes the client, shutting down the underlying HTTP client.

set_phisherman_token

set_phisherman_token(token: str) -> Client

Sets the phisherman token for the client.

Parameters:

Name Type Description Default
token str

The phisherman token to set.

required

Returns:

Type Description
Client

The client with the phisherman token set.