[commands] Add missing command decorator to example

This commit is contained in:
Willy
2023-02-27 06:19:17 -05:00
committed by GitHub
parent 8f86170767
commit ef4240dcd7

View File

@ -1147,6 +1147,7 @@ If you want a more robust error system, you can derive from the exception and ra
return True
return commands.check(predicate)
@bot.command()
@guild_only()
async def test(ctx):
await ctx.send('Hey this is not a DM! Nice.')