feat: update build number & remove clydeAI

This commit is contained in:
Elysia 2023-05-12 18:03:55 +07:00
parent b0a095d46b
commit 1fbb31beca
4 changed files with 4 additions and 45 deletions

View File

@ -582,25 +582,6 @@ class Guild extends AnonymousGuild {
return this.members.fetch({ ...options, user: this.ownerId }); return this.members.fetch({ ...options, user: this.ownerId });
} }
/**
* Check out the guild that can activate ClydeAI
* <info>**BETA** - This feature is currently in beta and may be changed or removed at any time.</info>
* @type {boolean}
* @readonly
* @deprecated
*/
get clydeSupport() {
// **BETA** - This feature is currently in beta and may be changed or removed at any time.
if (this.features.includes('COMMUNITY')) return false;
if (
(this.memberCount < 101 && v3(`2023-03_clyde_ai:${this.id}`) % 10e3 < 1200) ||
(this.memberCount < 201 && v3(`2023-03_clyde_ai:${this.id}`) % 10e3 < 1000)
) {
return true;
}
return false;
}
/** /**
* AFK voice channel for this guild. * AFK voice channel for this guild.
* @type {?VoiceChannel} * @type {?VoiceChannel}
@ -1477,23 +1458,6 @@ class Guild extends AnonymousGuild {
return this.edit({ features }); return this.edit({ features });
} }
/**
* Enables or disables Clyde AI for this guild.
* <info>This feature is currently in beta and may be changed or removed at any time.</info>
* @param {boolean} [enabled=true] Whether the guild is enabled for Clyde AI
* @returns {Promise<Guild>}
* @deprecated
*/
enableClydeAI(enabled = true) {
if (!this.clydeSupport) return Promise.resolve(this);
if (enabled) {
if (this.features.includes('CLYDE_ENABLED')) return Promise.resolve(this);
return this.edit({ features: [...this.features, 'CLYDE_ENABLED'] });
} else {
return this.edit({ features: this.features.filter(f => f !== 'CLYDE_ENABLED') });
}
}
/** /**
* Leaves the guild. * Leaves the guild.
* @returns {Promise<Guild>} * @returns {Promise<Guild>}

View File

@ -6,7 +6,7 @@ const Package = (exports.Package = require('../../package.json'));
const { Error, RangeError, TypeError } = require('../errors'); const { Error, RangeError, TypeError } = require('../errors');
// #88: https://jnrbsn.github.io/user-agents/user-agents.json // #88: https://jnrbsn.github.io/user-agents/user-agents.json
exports.defaultUA = exports.defaultUA =
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9012 Chrome/108.0.5359.215 Electron/22.3.2 Safari/537.36'; 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9013 Chrome/108.0.5359.215 Electron/22.3.2 Safari/537.36';
/** /**
* Max bulk deletable message age * Max bulk deletable message age

View File

@ -197,12 +197,12 @@ class Options extends null {
os: 'Windows', os: 'Windows',
browser: 'Discord Client', browser: 'Discord Client',
release_channel: 'stable', release_channel: 'stable',
client_version: '1.0.9012', client_version: '1.0.9013',
os_version: '10.0.22621', os_version: '10.0.22621',
os_arch: 'x64', os_arch: 'x64',
system_locale: 'en-US', system_locale: 'en-US',
client_build_number: 190187, client_build_number: 197575,
native_build_number: 31718, native_build_number: 32266,
client_event_source: null, client_event_source: null,
design_id: 0, design_id: 0,
}, },

5
typings/index.d.ts vendored
View File

@ -1485,11 +1485,6 @@ export class Guild extends AnonymousGuild {
public setWidgetSettings(settings: GuildWidgetSettingsData, reason?: string): Promise<Guild>; public setWidgetSettings(settings: GuildWidgetSettingsData, reason?: string): Promise<Guild>;
public setVanityCode(code?: string): Promise<Vanity>; public setVanityCode(code?: string): Promise<Vanity>;
public toJSON(): unknown; public toJSON(): unknown;
// Added
/** @deprecated */
public readonly clydeSupport: boolean;
/** @deprecated */
public enableClydeAI(enabled?: boolean): Promise<Guild>;
} }
export class GuildAuditLogs<T extends GuildAuditLogsResolvable = 'ALL'> { export class GuildAuditLogs<T extends GuildAuditLogsResolvable = 'ALL'> {