cordo 1.16.7 → 1.16.8
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/dist/types/base.d.ts +26 -0
- package/package.json +1 -1
- package/src/types/base.ts +28 -0
package/dist/types/base.d.ts
CHANGED
|
@@ -30,6 +30,26 @@ export type InteractionMember = {
|
|
|
30
30
|
deaf: boolean;
|
|
31
31
|
};
|
|
32
32
|
export type PartialInteractionMember = Omit<InteractionMember, 'user' | 'mute' | 'deaf'>;
|
|
33
|
+
export type InteractionGuild = {
|
|
34
|
+
id: Snowflake;
|
|
35
|
+
locale: string;
|
|
36
|
+
features: string[];
|
|
37
|
+
};
|
|
38
|
+
export type InteractionChannel = {
|
|
39
|
+
id: Snowflake;
|
|
40
|
+
guild_id?: Snowflake;
|
|
41
|
+
flags: number;
|
|
42
|
+
last_message_id: string;
|
|
43
|
+
past_pin_timestamp: string;
|
|
44
|
+
name: string;
|
|
45
|
+
nsfw: boolean;
|
|
46
|
+
parent_id: string;
|
|
47
|
+
permissions: string;
|
|
48
|
+
position: number;
|
|
49
|
+
rate_limit_per_user: number;
|
|
50
|
+
topic: string;
|
|
51
|
+
type: ChannelType;
|
|
52
|
+
};
|
|
33
53
|
export type PartialInteractionChannel = {
|
|
34
54
|
id: Snowflake;
|
|
35
55
|
name: string;
|
|
@@ -176,12 +196,14 @@ export type Entitlement = {
|
|
|
176
196
|
export type InteractionLocationGuild = {
|
|
177
197
|
member: InteractionMember;
|
|
178
198
|
user?: InteractionUser;
|
|
199
|
+
guild: InteractionGuild;
|
|
179
200
|
guild_id: Snowflake;
|
|
180
201
|
channel_id: Snowflake;
|
|
181
202
|
};
|
|
182
203
|
export type InteractionLocationDM = {
|
|
183
204
|
member?: undefined;
|
|
184
205
|
user: InteractionUser;
|
|
206
|
+
guild?: undefined;
|
|
185
207
|
guild_id?: undefined;
|
|
186
208
|
channel_id?: undefined;
|
|
187
209
|
};
|
|
@@ -250,9 +272,13 @@ export type InteractionBase = {
|
|
|
250
272
|
user: InteractionUser;
|
|
251
273
|
application_id?: Snowflake;
|
|
252
274
|
locale?: string;
|
|
275
|
+
guild?: InteractionGuild;
|
|
253
276
|
guild_locale?: string;
|
|
277
|
+
channel: InteractionChannel;
|
|
254
278
|
entitlement_sku_ids?: string[];
|
|
255
279
|
entitlements?: Entitlement[];
|
|
280
|
+
app_permissions: string;
|
|
281
|
+
authorizing_integration_owners: Record<string, string>;
|
|
256
282
|
guildData?: GuildData;
|
|
257
283
|
userData?: UserData;
|
|
258
284
|
_answered: boolean;
|
package/package.json
CHANGED
package/src/types/base.ts
CHANGED
|
@@ -42,6 +42,28 @@ export type InteractionMember = {
|
|
|
42
42
|
|
|
43
43
|
export type PartialInteractionMember = Omit<InteractionMember, 'user' | 'mute' | 'deaf'>
|
|
44
44
|
|
|
45
|
+
export type InteractionGuild = {
|
|
46
|
+
id: Snowflake
|
|
47
|
+
locale: string
|
|
48
|
+
features: string[]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type InteractionChannel = {
|
|
52
|
+
id: Snowflake
|
|
53
|
+
guild_id?: Snowflake
|
|
54
|
+
flags: number
|
|
55
|
+
last_message_id: string
|
|
56
|
+
past_pin_timestamp: string
|
|
57
|
+
name: string
|
|
58
|
+
nsfw: boolean
|
|
59
|
+
parent_id: string
|
|
60
|
+
permissions: string
|
|
61
|
+
position: number
|
|
62
|
+
rate_limit_per_user: number
|
|
63
|
+
topic: string
|
|
64
|
+
type: ChannelType
|
|
65
|
+
}
|
|
66
|
+
|
|
45
67
|
export type PartialInteractionChannel = {
|
|
46
68
|
id: Snowflake
|
|
47
69
|
name: string
|
|
@@ -204,6 +226,7 @@ export type Entitlement = {
|
|
|
204
226
|
export type InteractionLocationGuild = {
|
|
205
227
|
member: InteractionMember
|
|
206
228
|
user?: InteractionUser
|
|
229
|
+
guild: InteractionGuild
|
|
207
230
|
guild_id: Snowflake
|
|
208
231
|
channel_id: Snowflake
|
|
209
232
|
}
|
|
@@ -211,6 +234,7 @@ export type InteractionLocationGuild = {
|
|
|
211
234
|
export type InteractionLocationDM = {
|
|
212
235
|
member?: undefined
|
|
213
236
|
user: InteractionUser
|
|
237
|
+
guild?: undefined
|
|
214
238
|
guild_id?: undefined
|
|
215
239
|
channel_id?: undefined
|
|
216
240
|
}
|
|
@@ -286,9 +310,13 @@ export type InteractionBase = {
|
|
|
286
310
|
user: InteractionUser
|
|
287
311
|
application_id?: Snowflake
|
|
288
312
|
locale?: string
|
|
313
|
+
guild?: InteractionGuild
|
|
289
314
|
guild_locale?: string
|
|
315
|
+
channel: InteractionChannel
|
|
290
316
|
entitlement_sku_ids?: string[],
|
|
291
317
|
entitlements?: Entitlement[]
|
|
318
|
+
app_permissions: string
|
|
319
|
+
authorizing_integration_owners: Record<string, string>
|
|
292
320
|
|
|
293
321
|
guildData?: GuildData
|
|
294
322
|
userData?: UserData
|