Skip to content

Interaction failed on embed only messages #192

@caffe-ian

Description

@caffe-ian

Summary

Interaction fails when the view message doesnt contains text messages

Reproduction Steps

await ctx.send(embed=embed,view=view) will not work and it will return Interaction failed in Discord. No errors even though I created an error handler.

await ctx.send(content="Test",embed=embed,view=view) this worked for me. Maybe it doesnt work whenever content is None.

Note: The first code above worked for me yesterday on both my bots, but after restarting both of them today it stopped working. I tried reinstalling 2.0 and the bug is still there. Couple days ago someone has the same issue as I did but I forgot who is it.

Minimal Reproducible Code

@bot.command()
async def test(ctx):
  view = class.Confirm(ctx)
  embed = discord.Embed(title="Test",color=color.blurple())
  await ctx.send(embed=embed,view=view)

  await view.wait()

  if view.value is None:
      await ctx.send("Timed out...")
  elif view.value:
      await ctx.send("Confirmed...")
  else:
      await ctx.send("Cancelled...")

Expected Results

Expecting this would work: await ctx.send(embed=embed,view=view)

Actual Results

But it returns interaction failed in Discord without any errors.

Intents

default

System Information

py-cord-2.0.0a3844+g2858bd17

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions