Fix typing of IntegrationAccount class
This commit is contained in:
parent
04573c3c06
commit
a0e1d1e25f
@ -59,7 +59,7 @@ class IntegrationAccount:
|
|||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
-----------
|
-----------
|
||||||
id: :class:`int`
|
id: :class:`str`
|
||||||
The account ID.
|
The account ID.
|
||||||
name: :class:`str`
|
name: :class:`str`
|
||||||
The account name.
|
The account name.
|
||||||
@ -68,8 +68,8 @@ class IntegrationAccount:
|
|||||||
__slots__ = ('id', 'name')
|
__slots__ = ('id', 'name')
|
||||||
|
|
||||||
def __init__(self, data: IntegrationAccountPayload) -> None:
|
def __init__(self, data: IntegrationAccountPayload) -> None:
|
||||||
self.id: Optional[int] = _get_as_snowflake(data, 'id')
|
self.id: str = data['id']
|
||||||
self.name: str = data.pop('name')
|
self.name: str = data['name']
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f'<IntegrationAccount id={self.id} name={self.name!r}>'
|
return f'<IntegrationAccount id={self.id} name={self.name!r}>'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user