dfx 0.96.0 → 0.97.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/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,