mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore(Integration): Cleanup removed methods (#6220)
This commit is contained in:
@@ -574,26 +574,6 @@ class Guild extends AnonymousGuild {
|
||||
return new WelcomeScreen(this, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* The data for creating an integration.
|
||||
* @typedef {Object} IntegrationData
|
||||
* @property {string} id The integration id
|
||||
* @property {string} type The integration type
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creates an integration by attaching an integration object
|
||||
* @param {IntegrationData} data The data for the integration
|
||||
* @param {string} reason Reason for creating the integration
|
||||
* @returns {Promise<Guild>}
|
||||
*/
|
||||
createIntegration(data, reason) {
|
||||
return this.client.api
|
||||
.guilds(this.id)
|
||||
.integrations.post({ data, reason })
|
||||
.then(() => this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a template for the guild.
|
||||
* @param {string} name The name for the template
|
||||
|
||||
Reference in New Issue
Block a user