dfx 0.96.0 → 0.97.1

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/src/types.ts CHANGED
@@ -1184,7 +1184,7 @@ export interface CreateMessageParams {
1184
1184
  readonly embeds?: Array<Embed>
1185
1185
  /** Allowed mentions for the message */
1186
1186
  readonly allowed_mentions?: AllowedMention
1187
- /** Include to make your message a reply or a forward */
1187
+ /** Include to make your message a reply */
1188
1188
  readonly message_reference?: MessageReference
1189
1189
  /** Components to include with the message */
1190
1190
  readonly components?: Array<Component>
@@ -5109,7 +5109,7 @@ export interface Message {
5109
5109
  /** roles specifically mentioned in this message */
5110
5110
  readonly mention_roles: Array<Snowflake>
5111
5111
  /** channels specifically mentioned in this message */
5112
- readonly mention_channels: Array<ChannelMention>
5112
+ readonly mention_channels?: Array<ChannelMention>
5113
5113
  /** any attached files */
5114
5114
  readonly attachments: Array<Attachment>
5115
5115
  /** any embedded content */
@@ -5130,12 +5130,10 @@ export interface Message {
5130
5130
  readonly application?: Application
5131
5131
  /** if the message is an Interaction or application-owned webhook, this is the id of the application */
5132
5132
  readonly application_id?: Snowflake
5133
- /** message flags combined as a bitfield */
5134
- readonly flags?: number
5135
5133
  /** data showing the source of a crosspost, channel follow add, pin, or reply message */
5136
5134
  readonly message_reference?: MessageReference
5137
- /** the message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.) */
5138
- readonly message_snapshots: Array<MessageSnapshot>
5135
+ /** message flags combined as a bitfield */
5136
+ readonly flags?: number
5139
5137
  /** the message associated with the message_reference */
5140
5138
  readonly referenced_message?: Message | null
5141
5139
  /** In preview. Sent if the message is sent as a result of an interaction */
@@ -5145,7 +5143,7 @@ export interface Message {
5145
5143
  /** the thread that was started from this message, includes thread member object */
5146
5144
  readonly thread?: Channel
5147
5145
  /** sent if the message contains components like buttons, action rows, or other interactive components */
5148
- readonly components: Array<Component>
5146
+ readonly components?: Array<Component>
5149
5147
  /** sent if the message contains stickers */
5150
5148
  readonly sticker_items?: Array<StickerItem>
5151
5149
  /** Deprecated the stickers sent with the message */
@@ -5329,8 +5327,6 @@ export interface MessageReactionRemoveEvent {
5329
5327
  readonly emoji: Emoji
5330
5328
  }
5331
5329
  export interface MessageReference {
5332
- /** type of reference. */
5333
- readonly type?: MessageReferenceType
5334
5330
  /** id of the originating message */
5335
5331
  readonly message_id?: Snowflake
5336
5332
  /** id of the originating message's channel */
@@ -5340,18 +5336,6 @@ export interface MessageReference {
5340
5336
  /** when sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */
5341
5337
  readonly fail_if_not_exists?: boolean
5342
5338
  }
5343
- export enum MessageReferenceType {
5344
- /** A standard reference used by replies. */
5345
- DEFAULT = 0,
5346
- /** Reference used to point to a message at a point in time. */
5347
- FORWARD = 1,
5348
- }
5349
- export interface MessageSnapshot {
5350
- /** subset of fields in the message object */
5351
- readonly message: Message
5352
- /** ID of the origin message's guild */
5353
- readonly guild_id?: Snowflake
5354
- }
5355
5339
  export enum MessageType {
5356
5340
  DEFAULT = 0,
5357
5341
  RECIPIENT_ADD = 1,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "0.96.0";
1
+ export const LIB_VERSION = "0.97.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 or a forward */
1185
+ /** Include to make your message a reply */
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: Array<ChannelMention>;
3125
+ readonly mention_channels?: Array<ChannelMention>;
3126
3126
  /** any attached files */
3127
3127
  readonly attachments: Array<Attachment>;
3128
3128
  /** any embedded content */
@@ -3143,12 +3143,10 @@ 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
- /** message flags combined as a bitfield */
3147
- readonly flags?: number;
3148
3146
  /** data showing the source of a crosspost, channel follow add, pin, or reply message */
3149
3147
  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>;
3148
+ /** message flags combined as a bitfield */
3149
+ readonly flags?: number;
3152
3150
  /** the message associated with the message_reference */
3153
3151
  readonly referenced_message?: Message | null;
3154
3152
  /** In preview. Sent if the message is sent as a result of an interaction */
@@ -3158,7 +3156,7 @@ export interface Message {
3158
3156
  /** the thread that was started from this message, includes thread member object */
3159
3157
  readonly thread?: Channel;
3160
3158
  /** sent if the message contains components like buttons, action rows, or other interactive components */
3161
- readonly components: Array<Component>;
3159
+ readonly components?: Array<Component>;
3162
3160
  /** sent if the message contains stickers */
3163
3161
  readonly sticker_items?: Array<StickerItem>;
3164
3162
  /** Deprecated the stickers sent with the message */
@@ -3342,8 +3340,6 @@ export interface MessageReactionRemoveEvent {
3342
3340
  readonly emoji: Emoji;
3343
3341
  }
3344
3342
  export interface MessageReference {
3345
- /** type of reference. */
3346
- readonly type?: MessageReferenceType;
3347
3343
  /** id of the originating message */
3348
3344
  readonly message_id?: Snowflake;
3349
3345
  /** id of the originating message's channel */
@@ -3353,18 +3349,6 @@ export interface MessageReference {
3353
3349
  /** when sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */
3354
3350
  readonly fail_if_not_exists?: boolean;
3355
3351
  }
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
- }
3368
3352
  export declare enum MessageType {
3369
3353
  DEFAULT = 0,
3370
3354
  RECIPIENT_ADD = 1,