From 617a131d2dbc050bf6e77eb706cd942cfe947acf Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Wed, 16 Oct 2019 13:10:39 +0800 Subject: [PATCH] go: discord/modules: Properly return on error --- GoBot/discord/modules/trust.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GoBot/discord/modules/trust.go b/GoBot/discord/modules/trust.go index d2d44a1..19f2816 100644 --- a/GoBot/discord/modules/trust.go +++ b/GoBot/discord/modules/trust.go @@ -32,6 +32,7 @@ var changeTrust = enforceDM(memberFilter(true, enforceArgumentCount( config.ErrorChangeTrustSelf, config.ErrorColour, ).Send(s, m.ChannelID) + return } isMember := false @@ -46,6 +47,7 @@ var changeTrust = enforceDM(memberFilter(true, enforceArgumentCount( config.ErrorChangeTrustNotMember, config.ErrorColour, ).Send(s, m.ChannelID) + return } embed := message.NewEmbed().