Skip to content

Commit

Permalink
username error command
Browse files Browse the repository at this point in the history
  • Loading branch information
metalcupcake5 committed Oct 6, 2023
1 parent 2ae707d commit 0f34dd1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions commands/username.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const config = require("../config.json");
const discord = require("../discord.js");

module.exports = {
aliases: ["u"],
description: "username error help message",
run: (client, msg, args) => {
msg.channel.createMessage(
discord.embed(
msg,
`While the site itself is not broken, searching for players may return the following error.
\`\`\`No user with the name '<ign>' was found\`\`\`
This is due to current issues with an API we use for resolving UUIDs from usernames.
While we patiently await a fix, **please search using a player's UUID instead of their username**.`,
"No username found error",
[
{
name: `How do I find a UUID?`,
value: "If googling `minecraft uuid` is too hard for you, we suggest using https://mcuuid.net/ to find a player's UUID",
},
]
)
);
},
};

0 comments on commit 0f34dd1

Please sign in to comment.