UNPKG

@discord-user-card/profile-effects

Version:

All the profile effects supported by Discord (User Card)

11 lines 511 B
import { profileEffects } from "./profileEffects.js"; /** * Find a profile effect by its ID, SKU ID, or title. * * @param profileEffect The ID, SKU ID, or title of the profile effect to find. * @returns The profile effect, if found; otherwise, `undefined`. */ export function findProfileEffect(profileEffect) { return profileEffects.find(e => e.id === profileEffect || e.sku_id === profileEffect || e.title.toLowerCase() === profileEffect.toLowerCase()); } //# sourceMappingURL=findProfileEffect.js.map