#discord.ext.commands.errors.CommandInvokeError Command raised an exception TclError unknown optio

1 messages · Page 1 of 1 (latest)

devout raptor
#
button = Button(text="downoload", url=f"{member.avatar}")
view = View()
await ctx.send(embed = embed, view=view)```
#

error: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TclError: unknown option "-url"*

nocturne atlas
#
button = discord.ui.Button(label="Download", style=discord.ButtonStyle.url, url=member.avatar.url)
view = discord.ui.View()
view.add_item(button)
await ctx.send(view=view)
#

but i recommend subclassing View

devout raptor
#

thx