go: discord/modules: Properly return on error

master
Luther Wen Xu 2019-10-16 13:10:39 +07:00
parent 68c0afd97c
commit 617a131d2d
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 2 additions and 0 deletions

@ -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().