Compare commits

...

2 commits

Author SHA1 Message Date
WatDuhHekBro
8c6ffb963e
Merge branch 'master' of https://github.com/keanuplayz/TravBot-v3 2021-04-21 12:39:38 -05:00
WatDuhHekBro
548969daba
Added non-pinging mention to whois 2021-04-21 12:38:52 -05:00

View file

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