From 2b79405d6afbcf406beadb571a7574b211125a84 Mon Sep 17 00:00:00 2001 From: EdVraz <88881326+EdVraz@users.noreply.github.com> Date: Mon, 28 Feb 2022 10:51:26 +0100 Subject: [PATCH 1/2] fix!: fix EmbedImageStruct serialization --- interactions/api/models/message.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/interactions/api/models/message.py b/interactions/api/models/message.py index 5c0bba76a..c1652b008 100644 --- a/interactions/api/models/message.py +++ b/interactions/api/models/message.py @@ -901,3 +901,12 @@ def __init__(self, **kwargs): if self.footer: self._json.update({"footer": self.footer._json}) + + if self.video: + self._json.update({"video": self.video._json}) + + if self.image: + self._json.update({"image": self.image._json}) + + if self.thumbnail: + self._json.update({"thumbnail": self.thumbnail._json}) From bf79b5d3ebc169e3fcbeedc831f57a4138b07af9 Mon Sep 17 00:00:00 2001 From: EdVraz <88881326+EdVraz@users.noreply.github.com> Date: Mon, 28 Feb 2022 11:34:37 +0100 Subject: [PATCH 2/2] fix!: Button emoji serialization --- interactions/models/component.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interactions/models/component.py b/interactions/models/component.py index 640635707..9bafe9547 100644 --- a/interactions/models/component.py +++ b/interactions/models/component.py @@ -140,6 +140,8 @@ def __init__(self, **kwargs) -> None: self.type = ComponentType.BUTTON self.style = ButtonStyle(self.style) self._json.update({"type": self.type.value, "style": self.style.value}) + if self.emoji: + self._json.update({"emoji": self.emoji._json}) class Component(DictSerializerMixin):