diff --git a/src/structures/PartialGroupDMChannel.js b/src/structures/PartialGroupDMChannel.js index 4950fcb3b601..6d7f1e0d38da 100644 --- a/src/structures/PartialGroupDMChannel.js +++ b/src/structures/PartialGroupDMChannel.js @@ -13,7 +13,7 @@ class PartialGroupDMChannel extends Channel { /** * The name of this Group DM Channel - * @type {string} + * @type {?string} */ this.name = data.name; @@ -22,6 +22,18 @@ class PartialGroupDMChannel extends Channel { * @type {?string} */ this.icon = data.icon; + + /** + * Recipient data received in a {@link PartialGroupDMChannel}. + * @typedef {Object} PartialRecipient + * @property {string} username The username of the recipient + */ + + /** + * The recipients of this Group DM Channel. + * @type {PartialRecipient[]} + */ + this.recipients = data.recipients; } /** diff --git a/typings/index.d.ts b/typings/index.d.ts index bb8e8293e706..779c1b453418 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1510,8 +1510,9 @@ export class OAuth2Guild extends BaseGuild { export class PartialGroupDMChannel extends Channel { public constructor(client: Client, data: RawPartialGroupDMChannelData); - public name: string; + public name: string | null; public icon: string | null; + public recipients: PartialRecipient[]; public iconURL(options?: StaticImageURLOptions): string | null; } @@ -4542,6 +4543,10 @@ export type RecursiveArray = ReadonlyArray>; export type RecursiveReadonlyArray = ReadonlyArray>; +export interface PartialRecipient { + username: string; +} + export type PremiumTier = keyof typeof PremiumTiers; export interface PresenceData {