dfx 0.95.3 → 0.96.0
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/Cache.d.ts +1 -1
- package/DiscordGateway/Shard.d.ts +2 -2
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordGateway.d.ts +1 -1
- package/DiscordREST.d.ts +2 -2
- package/Interactions/context.d.ts +1 -1
- package/Interactions/definitions.d.ts +5 -5
- package/Interactions/gateway.d.ts +1 -1
- package/Interactions/webhook.d.ts +1 -1
- package/gateway.d.ts +2 -2
- package/mjs/types.mjs +7 -0
- package/mjs/types.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +3 -3
- package/src/types.ts +21 -5
- package/src/version.ts +1 -1
- package/types.d.ts +21 -5
- package/types.d.ts.map +1 -1
- package/types.js +8 -1
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/webhooks.d.ts +1 -1
package/types.d.ts
CHANGED
|
@@ -1182,7 +1182,7 @@ export interface CreateMessageParams {
|
|
|
1182
1182
|
readonly embeds?: Array<Embed>;
|
|
1183
1183
|
/** Allowed mentions for the message */
|
|
1184
1184
|
readonly allowed_mentions?: AllowedMention;
|
|
1185
|
-
/** Include to make your message a reply */
|
|
1185
|
+
/** Include to make your message a reply or a forward */
|
|
1186
1186
|
readonly message_reference?: MessageReference;
|
|
1187
1187
|
/** Components to include with the message */
|
|
1188
1188
|
readonly components?: Array<Component>;
|
|
@@ -3122,7 +3122,7 @@ export interface Message {
|
|
|
3122
3122
|
/** roles specifically mentioned in this message */
|
|
3123
3123
|
readonly mention_roles: Array<Snowflake>;
|
|
3124
3124
|
/** channels specifically mentioned in this message */
|
|
3125
|
-
readonly mention_channels
|
|
3125
|
+
readonly mention_channels: Array<ChannelMention>;
|
|
3126
3126
|
/** any attached files */
|
|
3127
3127
|
readonly attachments: Array<Attachment>;
|
|
3128
3128
|
/** any embedded content */
|
|
@@ -3143,10 +3143,12 @@ export interface Message {
|
|
|
3143
3143
|
readonly application?: Application;
|
|
3144
3144
|
/** if the message is an Interaction or application-owned webhook, this is the id of the application */
|
|
3145
3145
|
readonly application_id?: Snowflake;
|
|
3146
|
-
/** data showing the source of a crosspost, channel follow add, pin, or reply message */
|
|
3147
|
-
readonly message_reference?: MessageReference;
|
|
3148
3146
|
/** message flags combined as a bitfield */
|
|
3149
3147
|
readonly flags?: number;
|
|
3148
|
+
/** data showing the source of a crosspost, channel follow add, pin, or reply message */
|
|
3149
|
+
readonly message_reference?: MessageReference;
|
|
3150
|
+
/** the message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.) */
|
|
3151
|
+
readonly message_snapshots: Array<MessageSnapshot>;
|
|
3150
3152
|
/** the message associated with the message_reference */
|
|
3151
3153
|
readonly referenced_message?: Message | null;
|
|
3152
3154
|
/** In preview. Sent if the message is sent as a result of an interaction */
|
|
@@ -3156,7 +3158,7 @@ export interface Message {
|
|
|
3156
3158
|
/** the thread that was started from this message, includes thread member object */
|
|
3157
3159
|
readonly thread?: Channel;
|
|
3158
3160
|
/** sent if the message contains components like buttons, action rows, or other interactive components */
|
|
3159
|
-
readonly components
|
|
3161
|
+
readonly components: Array<Component>;
|
|
3160
3162
|
/** sent if the message contains stickers */
|
|
3161
3163
|
readonly sticker_items?: Array<StickerItem>;
|
|
3162
3164
|
/** Deprecated the stickers sent with the message */
|
|
@@ -3340,6 +3342,8 @@ export interface MessageReactionRemoveEvent {
|
|
|
3340
3342
|
readonly emoji: Emoji;
|
|
3341
3343
|
}
|
|
3342
3344
|
export interface MessageReference {
|
|
3345
|
+
/** type of reference. */
|
|
3346
|
+
readonly type?: MessageReferenceType;
|
|
3343
3347
|
/** id of the originating message */
|
|
3344
3348
|
readonly message_id?: Snowflake;
|
|
3345
3349
|
/** id of the originating message's channel */
|
|
@@ -3349,6 +3353,18 @@ export interface MessageReference {
|
|
|
3349
3353
|
/** when sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */
|
|
3350
3354
|
readonly fail_if_not_exists?: boolean;
|
|
3351
3355
|
}
|
|
3356
|
+
export declare enum MessageReferenceType {
|
|
3357
|
+
/** A standard reference used by replies. */
|
|
3358
|
+
DEFAULT = 0,
|
|
3359
|
+
/** Reference used to point to a message at a point in time. */
|
|
3360
|
+
FORWARD = 1
|
|
3361
|
+
}
|
|
3362
|
+
export interface MessageSnapshot {
|
|
3363
|
+
/** subset of fields in the message object */
|
|
3364
|
+
readonly message: Message;
|
|
3365
|
+
/** ID of the origin message's guild */
|
|
3366
|
+
readonly guild_id?: Snowflake;
|
|
3367
|
+
}
|
|
3352
3368
|
export declare enum MessageType {
|
|
3353
3369
|
DEFAULT = 0,
|
|
3354
3370
|
RECIPIENT_ADD = 1,
|