clamor-py/Clamor

View on GitHub
clamor/rest/endpoints/oauth.py

Summary

Maintainability
A
0 mins
Test Coverage
# -*- coding: utf-8 -*-

from ..routes import Routes
from .base import *

__all__ = (
    'OAuthWrapper',
)


class OAuthWrapper(EndpointsWrapper):
    """A higher-level wrapper around OAuth2 endpoints.

    .. seealso:: OAuth2 endpoints https://discordapp.com/developers/docs/topics/oauth2
    """

    async def get_current_application_info(self) -> dict:
        return await self.http.make_request(Routes.GET_CURRENT_APPLICATION_INFO)