From a0e1d1e25f40c0d0e233e036e5d8aa4e854f9c31 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 11 Jun 2021 18:25:23 +1000 Subject: [PATCH] Fix typing of IntegrationAccount class --- discord/integrations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/integrations.py b/discord/integrations.py index 4f1a9f664..1072be3e2 100644 --- a/discord/integrations.py +++ b/discord/integrations.py @@ -59,7 +59,7 @@ class IntegrationAccount: Attributes ----------- - id: :class:`int` + id: :class:`str` The account ID. name: :class:`str` The account name. @@ -68,8 +68,8 @@ class IntegrationAccount: __slots__ = ('id', 'name') def __init__(self, data: IntegrationAccountPayload) -> None: - self.id: Optional[int] = _get_as_snowflake(data, 'id') - self.name: str = data.pop('name') + self.id: str = data['id'] + self.name: str = data['name'] def __repr__(self) -> str: return f''