mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fixed components not appearing in the actual message output
This commit is contained in:
parent
214da2ded8
commit
560c2f7786
|
@ -182,6 +182,8 @@ class StackedDiscordMessage():
|
|||
message_structure["content"] = "\n".join([message.return_content() for message in self.message_list])
|
||||
elif self.message_type == 1:
|
||||
message_structure["embeds"] = [message.embed for message in self.message_list]
|
||||
if "components" in self.message_list[0].webhook_object:
|
||||
message_structure["components"] = self.message_list[0].webhook_object["components"]
|
||||
return json.dumps(message_structure)
|
||||
|
||||
def check_for_length(self, message_length: int):
|
||||
|
|
Loading…
Reference in a new issue