v2.15.1
This commit is contained in:
parent
556f1d3396
commit
f9fbcb34d3
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.15.1",
|
"version": "2.15.0",
|
||||||
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"types": "./typings/index.d.ts",
|
"types": "./typings/index.d.ts",
|
||||||
|
@ -498,11 +498,8 @@ class TextBasedChannel {
|
|||||||
}
|
}
|
||||||
if (user._partial) await user.getProfile().catch(() => {});
|
if (user._partial) await user.getProfile().catch(() => {});
|
||||||
if (!commandName || typeof commandName !== 'string') throw new Error('Command name is required');
|
if (!commandName || typeof commandName !== 'string') throw new Error('Command name is required');
|
||||||
const API =
|
const data = await this.searchInteraction(user.application?.id ?? user.id, 'CHAT_INPUT');
|
||||||
this.client.api[this.guild ? 'guilds' : 'channels'][this.guild?.id || this.id]['application-command-index'];
|
|
||||||
const data = await API.get();
|
|
||||||
for (const command of data.application_commands) {
|
for (const command of data.application_commands) {
|
||||||
if (command.type !== 1) continue;
|
|
||||||
if (user.id == command.application_id || user.application.id == command.application_id) {
|
if (user.id == command.application_id || user.application.id == command.application_id) {
|
||||||
user.application?.commands?._add(command, true);
|
user.application?.commands?._add(command, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user