We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23df307 commit ac81cd3Copy full SHA for ac81cd3
src/creator.ts
@@ -732,10 +732,9 @@ export class BaseSlashCreator extends (EventEmitter as any as new () => TypedEve
732
if (this._modalCallbacks.has(modalCallbackKey)) {
733
this._modalCallbacks.get(modalCallbackKey)!.callback(ctx);
734
this._modalCallbacks.delete(modalCallbackKey);
735
- return;
+ } else if (this._modalCallbacks.has(globalCallbackKey)) {
736
+ this._modalCallbacks.get(globalCallbackKey)!.callback(ctx);
737
}
- if (this._modalCallbacks.has(globalCallbackKey)) this._modalCallbacks.get(modalCallbackKey)!.callback(ctx);
738
-
739
return;
740
} catch (err) {
741
return this.emit('error', err as Error);
0 commit comments