mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed message.isMentioned
This commit is contained in:
@@ -61,7 +61,7 @@ var Message = (function (_Equality) {
|
||||
Message.prototype.isMentioned = function isMentioned(user) {
|
||||
user = this.client.internal.resolver.resolveUser(user);
|
||||
if (user) {
|
||||
return this.mentions.has("id", user.id);
|
||||
return this.mentions.has(user);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export default class Message extends Equality{
|
||||
isMentioned(user){
|
||||
user = this.client.internal.resolver.resolveUser(user);
|
||||
if (user) {
|
||||
return this.mentions.has("id", user.id);
|
||||
return this.mentions.has(user);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,11 @@ client.on("message", msg => {
|
||||
client.destroy();
|
||||
}
|
||||
|
||||
if (msg.content === "$perms") {
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (msg.content.startsWith("$play")) {
|
||||
var url = msg.content.split(" ")[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user