feat(Integration): add scopes (#8483)

This commit is contained in:
Almeida
2022-09-04 09:11:27 +01:00
committed by GitHub
parent d08a57cadd
commit 8b3d006118
2 changed files with 11 additions and 0 deletions

View File

@@ -185,6 +185,16 @@ class Integration extends Base {
} else { } else {
this.application ??= null; this.application ??= null;
} }
if ('scopes' in data) {
/**
* The scopes this application has been authorized for
* @type {OAuth2Scopes[]}
*/
this.scopes = data.scopes;
} else {
this.scopes ??= [];
}
} }
/** /**

View File

@@ -1450,6 +1450,7 @@ export class Integration extends Base {
public role: Role | null; public role: Role | null;
public enableEmoticons: boolean | null; public enableEmoticons: boolean | null;
public get roles(): Collection<Snowflake, Role>; public get roles(): Collection<Snowflake, Role>;
public scopes: OAuth2Scopes[];
public get syncedAt(): Date | null; public get syncedAt(): Date | null;
public syncedTimestamp: number | null; public syncedTimestamp: number | null;
public syncing: boolean | null; public syncing: boolean | null;