I am trying to create a Discord bot and add some commands to it but it seems to not work. I added the print statement to figure out if the command was added, but it returns None. Calling "!hello" in the Discord channel raises CommandNotFound.
import discord
from discord.ext import commands
client = commands.Bot(command_prefix="!")
TOKEN = [some token]
@client.command
async def hello(ctx, arg):
await ctx.channel.send(arg)
print(client.get_command("hello"))
client.run(TOKEN)