mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-15 03:25:48 +02:00
disable give in dm's
This commit is contained in:
parent
ea31a3d002
commit
33705ac571
1 changed files with 4 additions and 0 deletions
|
|
@ -119,6 +119,10 @@ class Dinks(commands.Cog):
|
||||||
if amount is None:
|
if amount is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Disable DM abuse
|
||||||
|
if ctx.guild is None:
|
||||||
|
return await ctx.send("Muttn")
|
||||||
|
|
||||||
valid = checks.isValidAmount(ctx, amount)
|
valid = checks.isValidAmount(ctx, amount)
|
||||||
if not valid[0]:
|
if not valid[0]:
|
||||||
return await ctx.send(valid[1])
|
return await ctx.send(valid[1])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue