fix
This commit is contained in:
parent
4315c773a3
commit
a16a7858d6
|
@ -99,13 +99,13 @@ commands.color = {
|
||||||
if (!str) return false;
|
if (!str) return false;
|
||||||
var role = colorRoles.get(message.member);
|
var role = colorRoles.get(message.member);
|
||||||
if (!role) {
|
if (!role) {
|
||||||
if (message.author.presence.status == "invisible")
|
if (message.author.presence.status == "offline")
|
||||||
message.reply([
|
message.reply([
|
||||||
"You are invisible.",
|
"You are invisible.",
|
||||||
"I can't change your color when you're invisible.",
|
"I can't see you.",
|
||||||
"How can I change your color if I can't see you?",
|
"I can't change your color when you're invisible."
|
||||||
].random());
|
].random());
|
||||||
else await colorRoles.ensure(message.member);
|
else await colorRoles.update(message.member);
|
||||||
}
|
}
|
||||||
role.setColor(str.toUpperCase());
|
role.setColor(str.toUpperCase());
|
||||||
message.react("🆗");
|
message.react("🆗");
|
||||||
|
@ -121,7 +121,7 @@ commands.title = {
|
||||||
if (!str) return false;
|
if (!str) return false;
|
||||||
if (str == "none") str = "";
|
if (str == "none") str = "";
|
||||||
if (str.length > 98) str = str.substr(0,97) + '…';
|
if (str.length > 98) str = str.substr(0,97) + '…';
|
||||||
var role = colorRoles.get(message.member);
|
var role = message.member.roles.find(role => role.name.startsWith('['));
|
||||||
role.setName(`[${str}]`);
|
role.setName(`[${str}]`);
|
||||||
message.react("🆗");
|
message.react("🆗");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue