from discord.ext import commands @commands.hybrid_command() async def ping(ctx: commands.Context): await ctx.send("pong") @commands.hybrid_command() async def foo(ctx: commands.Context, arg: str): await ctx.send(arg)