go: discord/modules: More send to PM channel instead of invalid user

Luther Wen Xu 2019-10-17 16:46:34 +07:00
parent 712af25677
commit ea08cbd36e
Signed by untrusted user: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 3 additions and 3 deletions

@ -65,7 +65,7 @@ var checkUseInvite = enforceDM(memberFilter(false, enforceArgumentCount(
}
if err == db.ErrNotFound {
message.InitNewEmbed(config.ErrorValidateTitle, config.ErrorValidationCodeNotExist, config.ErrorColour).
SendPM(s, m.ChannelID)
Send(s, m.ChannelID)
return
}
if err != nil {
@ -88,14 +88,14 @@ var checkUseInvite = enforceDM(memberFilter(false, enforceArgumentCount(
}
if !isMember {
message.InitNewEmbed(config.ErrorValidateTitle, config.ErrorValidationCodeNotOwnedByMember, config.ErrorColour).
SendPM(s, m.ChannelID)
Send(s, m.ChannelID)
return
}
channel, err := s.UserChannelCreate(inviter)
if err != nil {
message.InitNewEmbed(config.ErrorValidateTitle, config.ErrorValidationCodeCreatorDisabledPM, config.ErrorColour).
SendPM(s, m.ChannelID)
Send(s, m.ChannelID)
return
}
msg, err := message.InitNewEmbed(