Added non-pinging mention to whois

This commit is contained in:
WatDuhHekBro 2021-04-21 12:38:52 -05:00
parent 576e55fbdf
commit 548969daba
No known key found for this signature in database
GPG key ID: E128514902DF8A05

View file

@ -50,7 +50,7 @@ export default new NamedCommand({
const id = author.id; const id = author.id;
if (id in registry) { if (id in registry) {
send(registry[id]); send(`${author} ${registry[id]}`, {allowedMentions: {parse: []}});
} else { } else {
send("You haven't been added to the registry yet!"); send("You haven't been added to the registry yet!");
} }
@ -62,9 +62,9 @@ export default new NamedCommand({
const id = user.id; const id = user.id;
if (id in registry) { if (id in registry) {
send(registry[id]); send(`${user} ${registry[id]}`, {allowedMentions: {parse: []}});
} else { } else {
send(`\`${user.tag}\` hasn't been added to the registry yet!`); send(`${user} hasn't been added to the registry yet!`, {allowedMentions: {parse: []}});
} }
} }
}), }),
@ -74,9 +74,9 @@ export default new NamedCommand({
if (typeof user !== "string") { if (typeof user !== "string") {
if (user.id in registry) { if (user.id in registry) {
send(registry[user.id]); send(`${user} ${registry[user.id]}`, {allowedMentions: {parse: []}});
} else { } else {
send(`\`${user.tag}\` hasn't been added to the registry yet!`); send(`${user} hasn't been added to the registry yet!`, {allowedMentions: {parse: []}});
} }
} else { } else {
send(user); send(user);