REKLAM ALANI

[Python] Avatar Komudu

avatar ZeynepHANIM
Aktif Üye
266
#1
Yorumu Paylaş

Komudun Adı: [Python] Avatar
Komut için Gerekli Modüller: discord.py
Komut Açıklaması: Etiketlediğiniz Kişinin Avatarını Gösterir
Komutun Ekleneceği Yer: Main (bot.py, app.py)
Kod:
@client.command(pass_context=True)
async def avatar(ctx, member:discord.Member):
        if(member == None):
          await ctx.send("Lütfen bir kullanıcı etiketleyin.")

        embed = discord.Embed(title="{} Avatar".format(member.name))
        embed.set_image(url=member.avatar_url)
        embed.set_footer(text=ctx.bot.user.name)
        await ctx.send(embed=embed)
deneme
Aktif Üye

Konuda Ara

0 Yorum


Konuyu Okuyanlar: