Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

πŸ”₯ _client.http is a duplicate of _http ...for every APIObjectΒ #266

@Sigmanificient

Description

@Sigmanificient

ApiObject

@dataclass
class APIObject(metaclass=HTTPMeta):
    """
    Represents an object which has been fetched from the Discord API.
    """
    _client: Client
    _http: HTTPClient

Client

class Client(Dispatcher):
    """The client is the main instance which is between the programmer
    and the discord API.

    ...
    http: :class:`~core.http.HTTPClient`
        The http client used to communicate with the discord API
    ...
    """

    def __init__(self, ...):
        ...
        self.http = HTTPClient(token)

_http => self._http = self._client.http

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions