77
byAlias: new Map(),
78
};
80
81
private async _refreshRuntimeSlashCommandCatalog(cache: RuntimeSlashCommandCache): Promise<RuntimeSlashCommandCatalog> {
83
return cache.inFlight;
84
}
86
>
.then(result => this._toRuntimeSlashCommandCatalog(result));
87
>
cache.inFlight = inFlight;
88
>
inFlight.then(catalog => {
89
>
if (this._runtimeSlashCommandCache === cache) {
90
>
cache.value = catalog;
91
>
cache.inFlight = undefined;
92
>
}
93
>
}, () => {
94
if (this._runtimeSlashCommandCache === cache) {
95
cache.inFlight = undefined;