Merge branch 'dev' into 'main'
Another null protection See merge request illegitimate/illegitimate-bot!42
This commit is contained in:
@@ -85,6 +85,19 @@ module.exports = {
|
|||||||
var username = user1.username + "#" + user1.discriminator
|
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) {
|
if (!stats.data.player.socialMedia.links.DISCORD) {
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
|
|||||||
Reference in New Issue
Block a user