Fixed verify command to actually use new usernames
This commit is contained in:
@@ -63,18 +63,16 @@ module.exports = {
|
||||
const head = minotar + ign;
|
||||
|
||||
if (user1.discriminator === "0") {
|
||||
var verifyUsername = user1.username + "#0000"
|
||||
var username = user1.username
|
||||
} else {
|
||||
var verifyUsername = user1.username + "#" + user1.discriminator
|
||||
var username = user1.username + "#" + user1.discriminator
|
||||
}
|
||||
|
||||
if (hypixelCheck.data.links.DISCORD !== verifyUsername) {
|
||||
if (hypixelCheck.data.links.DISCORD !== username) {
|
||||
interaction.editReply({
|
||||
embeds: [
|
||||
{
|
||||
description: "<a:cross_a:1087808606897983539> The discord tag for `" + userCheck.data.name + "` is not `" + verifyUsername + "`. Please link your discord account to your hypixel account.\n" +
|
||||
description: "<a:cross_a:1087808606897983539> The discord tag for `" + userCheck.data.name + "` is not `" + username + "`. Please link your discord account to your hypixel account.\n" +
|
||||
"**If you are are using a new username then you will have to set your discord on hypixel to** `yourusername#0000`",
|
||||
color: embedColor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user