mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Update pyright version
This commit is contained in:
@ -47,6 +47,7 @@ if TYPE_CHECKING:
|
||||
InviteGuild as InviteGuildPayload,
|
||||
GatewayInvite as GatewayInvitePayload,
|
||||
)
|
||||
from .types.guild import GuildFeature
|
||||
from .types.channel import (
|
||||
PartialChannel as InviteChannelPayload,
|
||||
)
|
||||
@ -189,7 +190,7 @@ class PartialInviteGuild:
|
||||
self._state: ConnectionState = state
|
||||
self.id: int = id
|
||||
self.name: str = data['name']
|
||||
self.features: List[str] = data.get('features', [])
|
||||
self.features: List[GuildFeature] = data.get('features', [])
|
||||
self._icon: Optional[str] = data.get('icon')
|
||||
self._banner: Optional[str] = data.get('banner')
|
||||
self._splash: Optional[str] = data.get('splash')
|
||||
|
Reference in New Issue
Block a user