|
@@ -31,7 +31,7 @@ function minify(str, maxLength) {
|
|
|
|
|
|
const commands = {
|
|
|
"add quote": (msg, c) => {
|
|
|
- if (!util.isAuthorised(msg.author))
|
|
|
+ if (!util.isAuthorised(msg.member))
|
|
|
return;
|
|
|
|
|
|
let result = quotePattern.exec(c);
|
|
@@ -68,7 +68,7 @@ const commands = {
|
|
|
msg.channel.send(`${msg.author.toString()} Removed quote #${val}!`);
|
|
|
},
|
|
|
"quotes": msg => {
|
|
|
- if (!util.isAuthorised(msg.author)) {
|
|
|
+ if (!util.isAuthorised(msg.member)) {
|
|
|
msg.channel.send(`${msg.author.toString()} To prevent spamming, only bot moderators can view all quotes!`);
|
|
|
return;
|
|
|
}
|