commit
92441f0d8c
@ -10,9 +10,9 @@
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
client.setting // Return Data Setting User;
|
client.setting // Return Data Setting User;
|
||||||
client.setting.setDisplayCompactMode(true | false); // Message Compact Mode
|
client.settings.setDisplayCompactMode(true | false); // Message Compact Mode
|
||||||
client.setting.setTheme('dark' | 'light'); // Discord App theme
|
client.settings.setTheme('dark' | 'light'); // Discord App theme
|
||||||
client.setting.setLocale(value); // Set Language
|
client.settings.setLocale(value); // Set Language
|
||||||
/**
|
/**
|
||||||
* * Locale Setting, must be one of:
|
* * Locale Setting, must be one of:
|
||||||
* * `DANISH`
|
* * `DANISH`
|
||||||
@ -47,14 +47,14 @@ client.setting.setLocale(value); // Set Language
|
|||||||
* * `KOREAN`
|
* * `KOREAN`
|
||||||
*/
|
*/
|
||||||
// Setting Status
|
// Setting Status
|
||||||
client.setting.setCustomStatus({
|
client.settings.setCustomStatus({
|
||||||
status: 'online', // 'online' | 'idle' | 'dnd' | 'invisible' | null
|
status: 'online', // 'online' | 'idle' | 'dnd' | 'invisible' | null
|
||||||
text: 'Hello world', // String | null
|
text: 'Hello world', // String | null
|
||||||
emoji: '🎮', // UnicodeEmoji | DiscordEmoji | null
|
emoji: '🎮', // UnicodeEmoji | DiscordEmoji | null
|
||||||
expires: null, // Date.now() + 1 * 3600 * 1000 <= 1h to ms
|
expires: null, // Date.now() + 1 * 3600 * 1000 <= 1h to ms
|
||||||
});
|
});
|
||||||
// => Clear
|
// => Clear
|
||||||
client.setting.setCustomStatus();
|
client.settings.setCustomStatus();
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.6.5",
|
"version": "2.6.6",
|
||||||
"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",
|
||||||
@ -55,14 +55,14 @@
|
|||||||
"@discordjs/builders": "^1.1.0",
|
"@discordjs/builders": "^1.1.0",
|
||||||
"@discordjs/collection": "^1.0.0",
|
"@discordjs/collection": "^1.0.0",
|
||||||
"@discordjs/voice": "^0.11.0",
|
"@discordjs/voice": "^0.11.0",
|
||||||
"@sapphire/async-queue": "^1.4.0",
|
"@sapphire/async-queue": "^1.5.0",
|
||||||
"@sapphire/shapeshift": "^3.5.1",
|
"@sapphire/shapeshift": "^3.5.1",
|
||||||
"@types/node-fetch": "^2.6.2",
|
"@types/node-fetch": "^2.6.2",
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.3",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"bignumber.js": "^9.1.0",
|
"bignumber.js": "^9.1.0",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"discord-api-types": "^0.37.2",
|
"discord-api-types": "^0.37.3",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"json-bigint": "^1.0.0",
|
"json-bigint": "^1.0.0",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
|
@ -810,17 +810,17 @@ class Client extends BaseClient {
|
|||||||
customStatusAuto(client) {
|
customStatusAuto(client) {
|
||||||
client = client ?? this;
|
client = client ?? this;
|
||||||
const custom_status = new CustomStatus();
|
const custom_status = new CustomStatus();
|
||||||
if (client.setting.rawSetting.custom_status?.text || client.setting.rawSetting.custom_status?.emoji_name) {
|
if (client.settings.rawSetting.custom_status?.text || client.settings.rawSetting.custom_status?.emoji_name) {
|
||||||
custom_status.setEmoji({
|
custom_status.setEmoji({
|
||||||
name: client.setting.rawSetting.custom_status?.emoji_name,
|
name: client.settings.rawSetting.custom_status?.emoji_name,
|
||||||
id: client.setting.rawSetting.custom_status?.emoji_id,
|
id: client.settings.rawSetting.custom_status?.emoji_id,
|
||||||
});
|
});
|
||||||
custom_status.setState(client.setting.rawSetting.custom_status?.text);
|
custom_status.setState(client.settings.rawSetting.custom_status?.text);
|
||||||
client.user.setPresence({
|
client.user.setPresence({
|
||||||
activities: custom_status
|
activities: custom_status
|
||||||
? [custom_status.toJSON(), ...this.presence.activities.filter(a => a.type !== 'CUSTOM')]
|
? [custom_status.toJSON(), ...this.presence.activities.filter(a => a.type !== 'CUSTOM')]
|
||||||
: this.presence.activities.filter(a => a.type !== 'CUSTOM'),
|
: this.presence.activities.filter(a => a.type !== 'CUSTOM'),
|
||||||
status: client.setting.rawSetting.status,
|
status: client.settings.rawSetting.status,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1278,20 +1278,20 @@ class Guild extends AnonymousGuild {
|
|||||||
throw new TypeError('INVALID_TYPE', 'folderID', 'String | Number');
|
throw new TypeError('INVALID_TYPE', 'folderID', 'String | Number');
|
||||||
}
|
}
|
||||||
// Get Data from Folder ID
|
// Get Data from Folder ID
|
||||||
const folder = await this.client.setting.rawSetting.guild_folders.find(obj => obj.id == folderID);
|
const folder = await this.client.settings.rawSetting.guild_folders.find(obj => obj.id == folderID);
|
||||||
if (!folder) throw new Error('FOLDER_NOT_FOUND');
|
if (!folder) throw new Error('FOLDER_NOT_FOUND');
|
||||||
if (folder.guild_ids.length - 1 < position || position < 0) {
|
if (folder.guild_ids.length - 1 < position || position < 0) {
|
||||||
throw new Error('FOLDER_POSITION_INVALID');
|
throw new Error('FOLDER_POSITION_INVALID');
|
||||||
}
|
}
|
||||||
if (position !== folder.guild_ids.indexOf(this.id)) {
|
if (position !== folder.guild_ids.indexOf(this.id)) {
|
||||||
await this.client.setting.guildChangePosition(this.id, position, 1, folderID);
|
await this.client.settings.guildChangePosition(this.id, position, 1, folderID);
|
||||||
}
|
}
|
||||||
} else if (type == 2 || `${type}`.toUpperCase() === 'HOME') {
|
} else if (type == 2 || `${type}`.toUpperCase() === 'HOME') {
|
||||||
if (this.client.setting.guild_positions - 1 < position || position < 0) {
|
if (this.client.settings.guild_positions - 1 < position || position < 0) {
|
||||||
throw new Error('FOLDER_POSITION_INVALID');
|
throw new Error('FOLDER_POSITION_INVALID');
|
||||||
}
|
}
|
||||||
if (position !== this.position) {
|
if (position !== this.position) {
|
||||||
await this.client.setting.guildChangePosition(this.id, position, 2, null);
|
await this.client.settings.guildChangePosition(this.id, position, 2, null);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new TypeError('INVALID_TYPE', 'type', '`Folder`| `Home`');
|
throw new TypeError('INVALID_TYPE', 'type', '`Folder`| `Home`');
|
||||||
|
Loading…
Reference in New Issue
Block a user