Moved to uuids and cleaned up the output

This commit is contained in:
2023-03-14 20:07:44 +01:00
parent 6cdf0e4c42
commit aca9584b34
5 changed files with 130 additions and 58 deletions

View File

@@ -33,8 +33,10 @@ module.exports = {
const embedColor = Number(color.replace("#", "0x"));
const userCheck = await fetch(mojang + ign);
const hypixelCheck = await fetch(slothPixel + ign);
const guildCheck = await fetch(guildAPI + ign);
const userUUID = userCheck.data.id;
const hypixelCheck = await fetch(slothPixel + userUUID);
const guildCheck = await fetch(guildAPI + userUUID);
const head = minotar + ign;
const GuildMembers = await guildCheck.data.members;
@@ -46,7 +48,7 @@ module.exports = {
return
}
if (!userCheck.data.id) {
if (!userUUID) {
interaction.reply('That player doesn\'t exist. [Mojang]')
return
}