mirror of
https://github.com/danbulant/discord.js
synced 2026-06-21 07:42:36 +00:00
Fixed message.isMentioned
This commit is contained in:
parent
c2cf1badfd
commit
c9c1b19968
3 changed files with 7 additions and 2 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue