1. if i try to get a guildid i get as error return "Malformed UUID!" anyone can help me?


    Code:
            if (args.length == 1) {
                // Get UUID from name
                minecraftapi.uuidForName(args[0])
                    .catch(err => message.channel.send("Error! Please message the developer with this error: ```" + err + "```"))
                    .then(uuid => playeruuid = uuid)
                // Get GuildID from UUID
                hypi.findGuildByPlayer(playeruuid, (err, guildid) => {
                    if (err) {
                        console.log(err)
                        return
                    }
                    playerguildid = guildid
                    console.log(playerguildid)
                    // Get GuildInfo from GuildID
                    hypi.getGuild(playerguildid, (err, guild) => {
                        //console.log(guild)
                        fs.writeFile("./notes/outputguild.json", JSON.stringify(guild), "utf8", (err) => {
                            if (err) {
                                console.log(err)
                            }
                        })
                        message.channel.send(soon)
                    })
                })
            }
    Packages: Hypixel.js, fs, minecraft-api
     
    #1
  2. well i got it: uuid is undefined :/
     
    #2

Share This Page