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