-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Building a DiscordResponse with only an Embed and ActionRow is throwing a validation error saying it needs an embed or content field.
DiscordResponse(embeds=[embed], action_row=action_row)This bit of validation seems to be the issue:
if self._action_row:
if self.content == None or self.embeds == [] or self.content == "":
raise InvalidDiscordResponse(
"If creating a response with an action row, content or an embed must be present!"
)It should probably be:
if (self.content == None or self.content == "") and self.embeds == []:A work around I've found seems to be setting content = " " in the DiscordResponse
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working