@@ -64,6 +64,7 @@
|
|||||||
"qrcode": "^1.5.3",
|
"qrcode": "^1.5.3",
|
||||||
"tough-cookie": "^4.1.4",
|
"tough-cookie": "^4.1.4",
|
||||||
"tree-kill": "^1.2.2",
|
"tree-kill": "^1.2.2",
|
||||||
|
"tweetnacl": "^1.0.3",
|
||||||
"ws": "^8.16.0"
|
"ws": "^8.16.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -93,4 +94,4 @@
|
|||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"typescript": "^5.5.4"
|
"typescript": "^5.5.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ class ChannelManager extends CachedManager {
|
|||||||
recipients = recipients
|
recipients = recipients
|
||||||
.map(r => this.client.users.resolveId(r))
|
.map(r => this.client.users.resolveId(r))
|
||||||
.filter(r => r && this.client.relationships.cache.get(r) == RelationshipTypes.FRIEND);
|
.filter(r => r && this.client.relationships.cache.get(r) == RelationshipTypes.FRIEND);
|
||||||
if (recipients.length > 9) throw new Error('Invalid Users length (max=9)');
|
if (recipients.length == 1 || recipients.length > 9) throw new Error('Invalid Users length (max=9)');
|
||||||
const data = await this.client.api.users['@me'].channels.post({
|
const data = await this.client.api.users['@me'].channels.post({
|
||||||
data: { recipients },
|
data: { recipients },
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1170,13 +1170,7 @@ class Message extends Base {
|
|||||||
return this.client.api.channels[this.channelId].messages[this.id].ack.post({
|
return this.client.api.channels[this.channelId].messages[this.id].ack.post({
|
||||||
data: {
|
data: {
|
||||||
manual: true,
|
manual: true,
|
||||||
mention_count:
|
mention_count: 1,
|
||||||
this.mentions.everyone ||
|
|
||||||
this.mentions.repliedUser?.id === this.client.user.id ||
|
|
||||||
this.mentions.users.has(this.client.user.id) ||
|
|
||||||
(this.guildId && this.mentions.roles.some(r => this.guild.members.me._roles?.includes(r.id)))
|
|
||||||
? 1
|
|
||||||
: 0,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -650,7 +650,7 @@ class CustomStatus extends Activity {
|
|||||||
constructor(client, data = {}) {
|
constructor(client, data = {}) {
|
||||||
if (!client) throw new Error("Class constructor CustomStatus cannot be invoked without 'client'");
|
if (!client) throw new Error("Class constructor CustomStatus cannot be invoked without 'client'");
|
||||||
super('presence' in client ? client.presence : client, {
|
super('presence' in client ? client.presence : client, {
|
||||||
name: 'Custom Status',
|
name: ' ',
|
||||||
type: ActivityTypes.CUSTOM,
|
type: ActivityTypes.CUSTOM,
|
||||||
...data,
|
...data,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user