-
-
Notifications
You must be signed in to change notification settings - Fork 482
Description
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