@bot.command()
async def ping(ctx: commands.Context, emoji: bool=commands.Option(description='whether to use an emoji when responding')):
    if emoji:
        (await ctx.send('🏓'))
    else:
        (await ctx.send('Pong!'))
@bot.command()
async def ping(ctx: commands.Context, emoji: bool=commands.Option(description='whether to use an emoji when responding')):
    if emoji:
        (await ctx.send('🏓'))
    else:
        (await ctx.send('Pong!'))