Skip to content

hikari.urls#

API-wide URLs.

BASE_URL module-attribute #

BASE_URL: Final[str] = 'https://discord.com'

The base URL.

CDN_URL module-attribute #

CDN_URL: Final[str] = 'https://cdn.discordapp.com'

The CDN URL.

MEDIA_PROXY_URL module-attribute #

MEDIA_PROXY_URL: Final[str] = 'https://media.discordapp.net'

The media proxy URL.

OAUTH2_API_URL module-attribute #

OAUTH2_API_URL: Final[str] = f'{REST_API_URL}/oauth2'

The OAUTH2 API URL.

REST_API_URL module-attribute #

REST_API_URL: Final[str] = f'{BASE_URL}/api/v{VERSION}'

The REST API URL.

VERSION module-attribute #

VERSION: Final[int] = 10

The Gateway and REST version to use.