mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
feat(rest): add guild member banner cdn url (#7973)
This commit is contained in:
@@ -151,6 +151,22 @@ export class CDN {
|
|||||||
return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/avatars/${avatarHash}`, avatarHash, options);
|
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.
|
* Generates an icon URL, e.g. for a guild.
|
||||||
* @param id The id that has the icon splash
|
* @param id The id that has the icon splash
|
||||||
|
|||||||
Reference in New Issue
Block a user