@fallencodes/seyfert-utils 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/handleCommand.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalSubmitInteraction, ComponentInteraction } from 'seyfert';
|
|
2
2
|
import { HandleCommand } from 'seyfert/lib/commands/handle.js';
|
|
3
3
|
export declare function handleModal(this: HandleCommand, interaction: ModalSubmitInteraction): Promise<void>;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function handleMessageComponent(this: HandleCommand, interaction: ComponentInteraction): Promise<void>;
|
|
5
5
|
//# sourceMappingURL=handleCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleCommand.d.ts","sourceRoot":"","sources":["../src/handleCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAwE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC7I,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,wBAAsB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,sBAAsB,iBAgBzF;AAGD,wBAAsB,
|
|
1
|
+
{"version":3,"file":"handleCommand.d.ts","sourceRoot":"","sources":["../src/handleCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAwE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC7I,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,wBAAsB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,sBAAsB,iBAgBzF;AAGD,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,oBAAoB,iBAkBlG"}
|
package/build/handleCommand.js
CHANGED
|
@@ -17,7 +17,7 @@ export async function handleModal(interaction) {
|
|
|
17
17
|
}
|
|
18
18
|
;
|
|
19
19
|
/* My custom message component handler to support advanced custom IDs. */
|
|
20
|
-
export async function
|
|
20
|
+
export async function handleMessageComponent(interaction) {
|
|
21
21
|
// @ts-expect-error
|
|
22
22
|
const context = new ComponentContext(this.client, interaction);
|
|
23
23
|
const extended = this.client.options.context?.(interaction) ?? {};
|
package/package.json
CHANGED