© Jovantri Immanuel Gulo
1.4.1
3.8
pip install discord.py --upgrade
or, uninstall and install manual discord.py
module
if u using cogs, u can use this
import discord
from discord.ext import commands
class Userflags(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def userflags(ctx):
u = ""
p = ctx.author.public_flags
if p.hypesquad_brilliance:
u += "INPUT_EMOJI_BRILLIANCE_FLAGS"
if p.hypesquad_bravery:
u += "INPUT_EMOJI_BRAVERY_FLAGS"
if p.hypesquad_balance:
u += "INPUT_EMOJI_BALANCE_FLAGS"
flagsembed = discord.Embed(title="User Flags {}".format(ctx.author.mention))
flagsembed.add_field(name="{} flags".format(ctx.author.mention), value="u")
await ctx.send(embed=flagsembed)
def setup(bot):
bot.add_cog(userflags(bot))
if u using main.py , u can use this
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix="!")
@bot.command()
async def on_ready():
print("READY !")
@bot.command()
async def userinfo(ctx):
u = ""
p = ctx.author.public_flags
if p.hypesquad_brilliance:
u += "INPUT_EMOJI_BRILLIANCE_FLAGS"
if p.hypesquad_bravery:
u += "INPUT_EMOJI_BRAVERY_FLAGS"
if p.hypesquad_balance:
u += "INPUT_EMOJI_BALANCE_FLAGS"
flagsembed = discord.Embed(title="User Flags {}".format(ctx.author.mention))
flagsembed.add_field(name="{} flags".format(ctx.author.mention), value="u")
await ctx.send(embed=flagsembed)
bot.login("YOUR TOKEN")
How to Fork This repo? By click Here!. Thank you
Found error? Write what error on Here!
© Jovantri Immanuel Gulo