@blizzard-api/classic-wow
Version:
A series of helpers to interact with the World of Warcraft Classic Blizzard API
41 lines (40 loc) • 1.34 kB
JavaScript
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
//#region src/guild-crest/index.ts
/**
* Returns media for a guild crest border by ID.
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
* @param borderId The guild crest border ID.
* @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.
*/
function guildCrestBorder(namespace, borderId) {
return {
namespace,
path: `${wowMediaBasePath}/guild-crest/border/${borderId}`
};
}
/**
* Returns an index of guild crest media.
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
* @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.
*/
function guildCrestComponentsIndex(namespace) {
return {
namespace,
path: `${wowBasePath}/guild-crest/index`
};
}
/**
* Returns media for a guild crest emblem by ID.
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
* @param emblemId The guild crest emblem ID.
* @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
*/
function guildCrestEmblem(namespace, emblemId) {
return {
namespace,
path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`
};
}
//#endregion
export { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem };
//# sourceMappingURL=index.js.map