feat(rest): add guild member banner cdn url (#7973)

This commit is contained in:
Suneet Tipirneni
2022-06-04 03:00:39 -04:00
committed by GitHub
parent d60c464e61
commit 97eaab35d7

View File

@@ -151,6 +151,22 @@ export class CDN {
return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/avatars/${avatarHash}`, avatarHash, options);
}
/**
* Generates a guild member banner URL.
* @param guildId The id of the guild
* @param userId The id of the user
* @param bannerHash The hash provided by Discord for this banner
* @param options Optional options for the banner
*/
public guildMemberBanner(
guildId: string,
userId: string,
bannerHash: string,
options?: Readonly<ImageURLOptions>,
): string {
return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/banner`, bannerHash, options);
}
/**
* Generates an icon URL, e.g. for a guild.
* @param id The id that has the icon splash