mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
feat(cdn): add support for scheduled event image covers (#7335)
This commit is contained in:
@@ -212,6 +212,20 @@ export class CDN {
|
|||||||
return this.makeURL(`/team-icons/${teamId}/${iconHash}`, options);
|
return this.makeURL(`/team-icons/${teamId}/${iconHash}`, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates a cover image for a guild scheduled event.
|
||||||
|
* @param scheduledEventId The scheduled event id
|
||||||
|
* @param coverHash The hash provided by discord for this cover image
|
||||||
|
* @param options Optional options for the cover image
|
||||||
|
*/
|
||||||
|
public guildScheduledEventCover(
|
||||||
|
scheduledEventId: string,
|
||||||
|
coverHash: string,
|
||||||
|
options?: Readonly<BaseImageURLOptions>,
|
||||||
|
): string {
|
||||||
|
return this.makeURL(`/guild-events/${scheduledEventId}/${coverHash}`, options);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||||
* @param route The base cdn route
|
* @param route The base cdn route
|
||||||
|
|||||||
Reference in New Issue
Block a user