From 1fbb31becaff6a01f99a4053a105ea4cdb7b1e8b Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 12 May 2023 18:03:55 +0700 Subject: [PATCH] feat: update build number & remove clydeAI --- src/structures/Guild.js | 36 ------------------------------------ src/util/Constants.js | 2 +- src/util/Options.js | 6 +++--- typings/index.d.ts | 5 ----- 4 files changed, 4 insertions(+), 45 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 748ce56..14eeb4e 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -582,25 +582,6 @@ class Guild extends AnonymousGuild { return this.members.fetch({ ...options, user: this.ownerId }); } - /** - * Check out the guild that can activate ClydeAI - * **BETA** - This feature is currently in beta and may be changed or removed at any time. - * @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. * @type {?VoiceChannel} @@ -1477,23 +1458,6 @@ class Guild extends AnonymousGuild { return this.edit({ features }); } - /** - * Enables or disables Clyde AI for this guild. - * This feature is currently in beta and may be changed or removed at any time. - * @param {boolean} [enabled=true] Whether the guild is enabled for Clyde AI - * @returns {Promise} - * @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. * @returns {Promise} diff --git a/src/util/Constants.js b/src/util/Constants.js index 0f824dd..502059d 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -6,7 +6,7 @@ const Package = (exports.Package = require('../../package.json')); const { Error, RangeError, TypeError } = require('../errors'); // #88: https://jnrbsn.github.io/user-agents/user-agents.json 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 diff --git a/src/util/Options.js b/src/util/Options.js index 5a95c33..e872ad4 100644 --- a/src/util/Options.js +++ b/src/util/Options.js @@ -197,12 +197,12 @@ class Options extends null { os: 'Windows', browser: 'Discord Client', release_channel: 'stable', - client_version: '1.0.9012', + client_version: '1.0.9013', os_version: '10.0.22621', os_arch: 'x64', system_locale: 'en-US', - client_build_number: 190187, - native_build_number: 31718, + client_build_number: 197575, + native_build_number: 32266, client_event_source: null, design_id: 0, }, diff --git a/typings/index.d.ts b/typings/index.d.ts index 928f747..79f1634 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1485,11 +1485,6 @@ export class Guild extends AnonymousGuild { public setWidgetSettings(settings: GuildWidgetSettingsData, reason?: string): Promise; public setVanityCode(code?: string): Promise; public toJSON(): unknown; - // Added - /** @deprecated */ - public readonly clydeSupport: boolean; - /** @deprecated */ - public enableClydeAI(enabled?: boolean): Promise; } export class GuildAuditLogs {