jeudi 8 avril 2021

I am creating discord bot (python). I wnat to create random gun and image of that gun all in embed. How can i do that ?. How can I add here image?

I am programing discord bot when you type ! guns it will give you random gun and image of that gun all in embed. How can i do that ?. How can I add here image ? I have this code:

@client.command()
async def guns(ctx):
    items = [
    discord.Embed(title = "Gun Classic" , description = ""  #here i want image of gun classic),
    discord.Embed(title = "Gun  Shorty: ", description = "" #here i want image of gun Shorty)]
    randomitem = random.choice(items)
    await ctx.send(embed=randomitem)

I want add to items with text also picture, But u dont know how. Can somebody help me ?




Aucun commentaire:

Enregistrer un commentaire