From 33705ac5712f207563189d117de237ace6094a8c Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Thu, 15 Oct 2020 17:25:09 +0200 Subject: [PATCH] disable give in dm's --- cogs/dinks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/dinks.py b/cogs/dinks.py index 25281d6..8e326c7 100644 --- a/cogs/dinks.py +++ b/cogs/dinks.py @@ -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])