go: discord/modules: Properly return on error

Luther Wen Xu 2019-10-16 13:10:39 +07:00
parent 68c0afd97c
commit 617a131d2d
Signed by untrusted user: 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.ErrorChangeTrustSelf,
config.ErrorColour, config.ErrorColour,
).Send(s, m.ChannelID) ).Send(s, m.ChannelID)
return
} }
isMember := false isMember := false
@ -46,6 +47,7 @@ var changeTrust = enforceDM(memberFilter(true, enforceArgumentCount(
config.ErrorChangeTrustNotMember, config.ErrorChangeTrustNotMember,
config.ErrorColour, config.ErrorColour,
).Send(s, m.ChannelID) ).Send(s, m.ChannelID)
return
} }
embed := message.NewEmbed(). embed := message.NewEmbed().