From ea08cbd36e56651823e396d7050e238adf5d9366 Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Thu, 17 Oct 2019 16:46:34 +0800 Subject: [PATCH] go: discord/modules: More send to PM channel instead of invalid user --- GoBot/discord/modules/invite.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GoBot/discord/modules/invite.go b/GoBot/discord/modules/invite.go index aa227f9..99c733c 100644 --- a/GoBot/discord/modules/invite.go +++ b/GoBot/discord/modules/invite.go @@ -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(