diff --git a/packages/rest/src/lib/CDN.ts b/packages/rest/src/lib/CDN.ts index cee907149..e28fdbeb6 100644 --- a/packages/rest/src/lib/CDN.ts +++ b/packages/rest/src/lib/CDN.ts @@ -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, + ): 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