@minesa-org/mini-interaction 0.0.13 → 0.0.15

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.
@@ -30,49 +30,49 @@ type BaseComponentInteractionHelpers = {
30
30
  * Button interaction with helper methods.
31
31
  * Buttons don't have values or resolved data.
32
32
  */
33
- export type ButtonInteraction = Omit<APIMessageComponentInteraction, "data"> & {
33
+ export interface ButtonInteraction extends Omit<APIMessageComponentInteraction, "data">, BaseComponentInteractionHelpers {
34
34
  data: APIMessageButtonInteractionData;
35
- } & BaseComponentInteractionHelpers;
35
+ }
36
36
  /**
37
37
  * String select menu interaction with helper methods.
38
38
  */
39
- export type StringSelectInteraction = Omit<APIMessageComponentInteraction, "data"> & {
39
+ export interface StringSelectInteraction extends Omit<APIMessageComponentInteraction, "data">, BaseComponentInteractionHelpers {
40
40
  data: APIMessageStringSelectInteractionData;
41
41
  values: string[];
42
42
  getStringValues: () => string[];
43
- } & BaseComponentInteractionHelpers;
43
+ }
44
44
  /**
45
45
  * Role select menu interaction with helper methods.
46
46
  */
47
- export type RoleSelectInteraction = Omit<APIMessageComponentInteraction, "data"> & {
47
+ export interface RoleSelectInteraction extends Omit<APIMessageComponentInteraction, "data">, BaseComponentInteractionHelpers {
48
48
  data: APIMessageRoleSelectInteractionData;
49
49
  values: string[];
50
50
  getRoles: () => APIRole[];
51
- } & BaseComponentInteractionHelpers;
51
+ }
52
52
  /**
53
53
  * User select menu interaction with helper methods.
54
54
  */
55
- export type UserSelectInteraction = Omit<APIMessageComponentInteraction, "data"> & {
55
+ export interface UserSelectInteraction extends Omit<APIMessageComponentInteraction, "data">, BaseComponentInteractionHelpers {
56
56
  data: APIMessageUserSelectInteractionData;
57
57
  values: string[];
58
58
  getUsers: () => ResolvedUserOption[];
59
- } & BaseComponentInteractionHelpers;
59
+ }
60
60
  /**
61
61
  * Channel select menu interaction with helper methods.
62
62
  */
63
- export type ChannelSelectInteraction = Omit<APIMessageComponentInteraction, "data"> & {
63
+ export interface ChannelSelectInteraction extends Omit<APIMessageComponentInteraction, "data">, BaseComponentInteractionHelpers {
64
64
  data: APIMessageChannelSelectInteractionData;
65
65
  values: string[];
66
66
  getChannels: () => APIInteractionDataResolvedChannel[];
67
- } & BaseComponentInteractionHelpers;
67
+ }
68
68
  /**
69
69
  * Mentionable select menu interaction with helper methods.
70
70
  */
71
- export type MentionableSelectInteraction = Omit<APIMessageComponentInteraction, "data"> & {
71
+ export interface MentionableSelectInteraction extends Omit<APIMessageComponentInteraction, "data">, BaseComponentInteractionHelpers {
72
72
  data: APIMessageMentionableSelectInteractionData;
73
73
  values: string[];
74
74
  getMentionables: () => ResolvedMentionableOption[];
75
- } & BaseComponentInteractionHelpers;
75
+ }
76
76
  /**
77
77
  * Represents a component interaction augmented with helper response methods.
78
78
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minesa-org/mini-interaction",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Mini interaction, connecting your app with Discord via HTTP-interaction (Vercel support).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",