I try to create a code for me to create an embed, but all the options are required when I make the order, how can I do so that they are not required
Here is my code
@bot.command(name="embed", description="Use this command to create a embed")
async def embed(ctx, *,title, content, urlthumbnail, urlimage, footer, fieldname, value):
if not isOwner(ctx):
return await ctx.respond("Only owners or staff can use this command.")
ctx.respond
embed = discord.Embed(title=f"{title}", description=f"{content}")
embed.set_thumbnail(url=f"{urlthumbnail}")
embed.set_image(url=f"{urlimage}")
embed.set_footer(text=f"{footer}")
embed.add_field(name=f"{fieldname}", value=f"{value}")
await ctx.send(embed=embed)
embed=discord.Embed(title=" <:pnlstore:1028979693241761833> | Embed Created ", description=f"<:oui:1030175858431885396> Embed created by **{ctx.author.mention}**")
embed.set_footer(text=".gg/pnlstore")
await ctx.respond(embed=embed)
source https://stackoverflow.com/questions/74082539/i-try-to-create-a-code-for-me-to-create-an-embed-but-all-the-options-are-requir
Comments
Post a Comment