mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 10:49:24 +00:00
[commands] Add missing command decorator to example
This commit is contained in:
parent
8f86170767
commit
ef4240dcd7
@ -1147,6 +1147,7 @@ If you want a more robust error system, you can derive from the exception and ra
|
|||||||
return True
|
return True
|
||||||
return commands.check(predicate)
|
return commands.check(predicate)
|
||||||
|
|
||||||
|
@bot.command()
|
||||||
@guild_only()
|
@guild_only()
|
||||||
async def test(ctx):
|
async def test(ctx):
|
||||||
await ctx.send('Hey this is not a DM! Nice.')
|
await ctx.send('Hey this is not a DM! Nice.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user