sir-lancebot icon indicating copy to clipboard operation
sir-lancebot copied to clipboard

`.uwu` doesn't work when replying to an embed.

Open AbooMinister25 opened this issue 3 years ago • 2 comments

Description

Using .uwu when replying to an embed doesn't work (returns a plain >>>), but it does work if you pass a message link to an embed.

Steps to Reproduce

Run .uwu while replying to an embed.

image

Expected Behaviour

Return an embed with its contents uwuified.

image

Possible Solutions

Implementing a check for whether a replied message contains an embed

text = text or getattr(ctx.message.reference, "resolved", None)
if isinstance(text, discord.Message):
    text = text.content
# check suggested
if isinstance(text, discord.Embed):
    do_something()

Would you like to implement a fix?

Note: For high-priority or critical bugs, fixes may be implemented by staff.

  • [x] I'd like to implement the bug fix
  • [x] Anyone can implement the bug fix

AbooMinister25 avatar Jul 12 '22 22:07 AbooMinister25

@AbooMinister25 Would you like me to assign you, or do you wish to wait for someone else first?

D0rs4n avatar Jul 12 '22 23:07 D0rs4n

I'd like to be assigned @D0rs4n

AbooMinister25 avatar Jul 12 '22 23:07 AbooMinister25