diff --git a/discord/types/components.py b/discord/types/components.py index e853df318..ff078c639 100644 --- a/discord/types/components.py +++ b/discord/types/components.py @@ -27,7 +27,7 @@ from __future__ import annotations from typing import List, Literal, TypedDict, Union from .emoji import PartialEmoji -ComponentType = Literal[1, 2, 3] +ComponentType = Literal[1, 2, 3, 4] ButtonStyle = Literal[1, 2, 3, 4, 5] TextStyle = Literal[1, 2] diff --git a/discord/types/embed.py b/discord/types/embed.py index 2e56d272b..de38bd276 100644 --- a/discord/types/embed.py +++ b/discord/types/embed.py @@ -43,13 +43,16 @@ class EmbedField(_EmbedFieldOptional): value: str -class EmbedThumbnail(TypedDict, total=False): - url: str +class _EmbedThumbnailOptional(TypedDict, total=False): proxy_url: str height: int width: int +class EmbedThumbnail(_EmbedThumbnailOptional): + url: str + + class EmbedVideo(TypedDict, total=False): url: str proxy_url: str @@ -57,25 +60,31 @@ class EmbedVideo(TypedDict, total=False): width: int -class EmbedImage(TypedDict, total=False): - url: str +class _EmbedImageOptional(TypedDict, total=False): proxy_url: str height: int width: int +class EmbedImage(_EmbedImageOptional): + url: str + + class EmbedProvider(TypedDict, total=False): name: str url: str -class EmbedAuthor(TypedDict, total=False): - name: str +class _EmbedAuthorOptional(TypedDict, total=False): url: str icon_url: str proxy_icon_url: str +class EmbedAuthor(_EmbedAuthorOptional): + name: str + + EmbedType = Literal['rich', 'image', 'video', 'gifv', 'article', 'link'] diff --git a/discord/types/guild.py b/discord/types/guild.py index 29946053d..0d05232ea 100644 --- a/discord/types/guild.py +++ b/discord/types/guild.py @@ -32,6 +32,7 @@ from .role import Role from .member import Member from .emoji import Emoji from .user import User +from .sticker import GuildSticker from .threads import Thread @@ -107,6 +108,7 @@ class _BaseGuildPreview(UnavailableGuild): splash: Optional[str] discovery_splash: Optional[str] emojis: List[Emoji] + stickers: List[GuildSticker] features: List[GuildFeature] description: Optional[str]