Merge branch 'dev' into 'main'

Another null protection

See merge request illegitimate/illegitimate-bot!42
This commit is contained in:
2023-11-05 10:32:20 +00:00

View File

@@ -85,6 +85,19 @@ module.exports = {
var username = user1.username + "#" + user1.discriminator
}
if (!stats.data.player.socialMedia) {
interaction.editReply({
embeds: [
{
description: "<a:cross_a:1087808606897983539> There is no Discord account linked to `" + stats.data.player.displayname + "`.\n\n" +
"**Please set your Discord tag on hypixel to `" + username + "` and try again.**",
color: embedColor
}
]
});
return;
}
if (!stats.data.player.socialMedia.links.DISCORD) {
interaction.editReply({
embeds: [