types(Integration): Add IntegrationType values (#6815)

This commit is contained in:
Jiralite
2021-10-12 18:35:26 +01:00
committed by GitHub
parent b030130df1
commit 187581dd84
2 changed files with 13 additions and 3 deletions

View File

@@ -10,6 +10,14 @@ const IntegrationApplication = require('./IntegrationApplication');
* @property {string} name The name of the account
*/
/**
* The type of an {@link Integration}. This can be:
* * `twitch`
* * `youtube`
* * `discord`
* @typedef {string} IntegrationType
*/
/**
* Represents a guild integration.
*/
@@ -36,8 +44,8 @@ class Integration extends Base {
this.name = data.name;
/**
* The integration type (twitch, youtube or discord)
* @type {string}
* The integration type
* @type {IntegrationType}
*/
this.type = data.type;