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(