1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

nextcord™️

This commit is contained in:
igna 2021-09-07 15:07:51 +00:00
parent e560568a35
commit 1ff3e93938

View file

@ -10,10 +10,10 @@ import datetime
import urllib.parse import urllib.parse
from typing import Dict from typing import Dict
from http import HTTPStatus from http import HTTPStatus
from discord import PartialEmoji from nextcord import PartialEmoji
import utils.image as image_utils import utils.image as image_utils
from utils.errors import RateLimitedError from utils.errors import RateLimitedError
from discord import HTTPException, Forbidden, NotFound, DiscordServerError from nextcord import HTTPException, Forbidden, NotFound, DiscordServerError
GuildId = int GuildId = int
@ -29,7 +29,7 @@ async def json_or_text(resp):
return text return text
class EmoteClient: class EmoteClient:
BASE_URL = 'https://discord.com/api/v7' BASE_URL = 'https://discord.com/api/v9'
HTTP_ERROR_CLASSES = { HTTP_ERROR_CLASSES = {
HTTPStatus.FORBIDDEN: Forbidden, HTTPStatus.FORBIDDEN: Forbidden,
HTTPStatus.NOT_FOUND: NotFound, HTTPStatus.NOT_FOUND: NotFound,