#Strange Invalid Webhook Token Error
1 messages · Page 1 of 1 (latest)
Hey! Once your issue is solved, press the button below to close this thread!
Full Error
Code
embed = ipy.Embed(
title=f"**Can you kindly send a screenshot of the FWA base of your {number_dict[i]} account?**",
description=f"- Please upload the screenshot as an attachment or send it as image URL.\n"
f"- This section is **compulsory**, and the base must be FWA base!\n"
f"- Go to this [message]({ctx.message.jump_url}) and click **\"Human Support\"** button for help.",
footer=ipy.EmbedFooter(
text="Feel free to ask for help for any confusions.",
icon_url=FOOTER_URL
),
color=COLOR
)
base_button = ipy.Button(
style=ipy.ButtonStyle.LINK,
label="Get FWA Base",
url="https://discord.com/channels/850257756971991058/964620590659022909",
emoji=ipy.PartialEmoji(name="🔨")
)
msg = await ctx.send(embeds=[embed], components=base_button)
Note
This error does not occur consistently, so I have no idea how to fix it. I hope some can help out on this one. Plus I am not even sending the message with a webhook, I am sending it with SlashContext.
You need to call await ctx.defer()
uh, i do have await ctx.defer() before this
I see. How long does this command take?
depends, as I have wait_for. The longest possible time can be like 20 mins?
@thin holly sorry for the ping, now I get what is the issue. The max response time for ctx.defer is 15 mins. But I have a small suggestion, maybe have the error message as Invalid Interaction Token instead of Webhook Token?
Right now the message is coming straight from discord, but yes, it might be worth catching and rethrowing with a more understandable message
Thank you!