From dd8349a279855a83caa3b56644a3195825af6b54 Mon Sep 17 00:00:00 2001 From: Yohann Boniface Date: Fri, 21 Jan 2022 12:26:06 +0100 Subject: [PATCH] :bug: Fix emotes & guild Features (#401) * :bug: Emoji were import as typing Signed-off-by: sigmanificient * :sparkles: Missing guild Features Signed-off-by: sigmanificient --- pincer/objects/guild/features.py | 3 +++ pincer/objects/guild/guild.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pincer/objects/guild/features.py b/pincer/objects/guild/features.py index 1583fc4b..4f70d397 100644 --- a/pincer/objects/guild/features.py +++ b/pincer/objects/guild/features.py @@ -79,4 +79,7 @@ class GuildFeature(Enum): PRIVATE_THREADS = "PRIVATE_THREADS" NEW_THREAD_PERMISSIONS = "NEW_THREAD_PERMISSIONS" THREADS_ENABLED = "THREADS_ENABLED" + ROLE_ICONS = "ROLE_ICONS" + ANIMATED_BANNER = "ANIMATED_BANNER" + MEMBER_PROFILES = "MEMBER_PROFILES" diff --git a/pincer/objects/guild/guild.py b/pincer/objects/guild/guild.py index 5732736c..4afc14db 100644 --- a/pincer/objects/guild/guild.py +++ b/pincer/objects/guild/guild.py @@ -10,6 +10,7 @@ from aiohttp import FormData from .channel import Channel, Thread +from ..message.emoji import Emoji from ..message.file import File from ...exceptions import UnavailableGuildError from ...utils.api_object import APIObject @@ -37,7 +38,6 @@ from ..user.integration import Integration from ..voice.region import VoiceRegion from ..events.presence import PresenceUpdateEvent - from ..message.emoji import Emoji from ..message.sticker import Sticker from ..user.voice_state import VoiceState from ...client import Client