disable give in dm's

pull/3/head
Stijn De Clercq 2020-10-15 17:25:09 +02:00
parent ea31a3d002
commit 33705ac571
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ class Dinks(commands.Cog):
if amount is None:
return
# Disable DM abuse
if ctx.guild is None:
return await ctx.send("Muttn")
valid = checks.isValidAmount(ctx, amount)
if not valid[0]:
return await ctx.send(valid[1])