feat: update build number & remove clydeAI
This commit is contained in:
@@ -582,25 +582,6 @@ class Guild extends AnonymousGuild {
|
||||
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.
|
||||
* @type {?VoiceChannel}
|
||||
@@ -1477,23 +1458,6 @@ class Guild extends AnonymousGuild {
|
||||
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.
|
||||
* @returns {Promise<Guild>}
|
||||
|
Reference in New Issue
Block a user