Browse Source

[commands] Add missing command decorator to example

pull/9272/head
Willy 2 years ago
committed by GitHub
parent
commit
ef4240dcd7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/ext/commands/commands.rst

1
docs/ext/commands/commands.rst

@ -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.')

Loading…
Cancel
Save