dist/cache/EmojiCache.js
/**
     * Filter for emojis by providing a filter function which returns true upon success and false otherwise
     * @param fn filter function to use for the filtering
     * @param guildId id of the guild the emojis searched belong to
     * @param ids
     * @returns array of bound emoji caches
     */
Filter for emojis by providing a filter function which returns true upon success and false otherwise
@param fn filter function to use for the filtering
@param guildId id of the guild the emojis searched belong to
@param ids
@returns array of bound emoji caches
Filter for emojis by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param guildId id of the guild the emojis searched belong to @param ids @returns array of bound emoji caches
async filter(fn, guildId, ids) {
        var _a;
        if (!guildId && this.boundGuild)
            guildId = this.boundGuild;
        const emojis = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.filter(fn, ids, super.buildId(guildId)));
        if (!emojis)
            return [];
        return emojis.map(e => new EmojiCache(this.storageEngine, this.rain, e));
    }
async filter ( fn , guildId , ids ) { var _a ; if ( ! guildId && this . boundGuild ) guildId = this . boundGuild ; const emojis = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . filter ( fn , ids , super . buildId ( guildId ) ) ) ; if ( ! emojis ) return [ ] ; return emojis . map ( e => new EmojiCache ( this . storageEngine , this . rain , e ) ) ; }
Filter for emojis by providing a filter function which returns true upon success and false otherwise
 @param fn filter function to use for the filtering
 @param guildId id of the guild the emojis searched belong to
 @param ids
 @returns array of bound emoji caches
Filter for emojis by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param guildId id of the guild the emojis searched belong to @param ids @returns array of bound emoji caches