Skip to content

Commit

Permalink
feat(RESTAPIPostChannelMessage, RESTAPIPostWebhookMessage): add flags…
Browse files Browse the repository at this point in the history
… for creation (#300)
  • Loading branch information
suneettipirneni committed Jan 19, 2022
1 parent 51fb37c commit 4194bd9
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deno/rest/v8/channel.ts
Expand Up @@ -221,6 +221,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down
5 changes: 5 additions & 0 deletions deno/rest/v8/webhook.ts
Expand Up @@ -6,6 +6,7 @@ import type {
APIMessage,
APIWebhook,
APIAttachment,
MessageFlags,
} from '../../payloads/v8/mod.ts';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals.ts';

Expand Down Expand Up @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down
4 changes: 4 additions & 0 deletions deno/rest/v9/channel.ts
Expand Up @@ -254,6 +254,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down
5 changes: 5 additions & 0 deletions deno/rest/v9/webhook.ts
Expand Up @@ -6,6 +6,7 @@ import type {
APIMessage,
APIWebhook,
APIAttachment,
MessageFlags,
} from '../../payloads/v9/mod.ts';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals.ts';

Expand Down Expand Up @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down
4 changes: 4 additions & 0 deletions rest/v8/channel.ts
Expand Up @@ -221,6 +221,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down
5 changes: 5 additions & 0 deletions rest/v8/webhook.ts
Expand Up @@ -6,6 +6,7 @@ import type {
APIMessage,
APIWebhook,
APIAttachment,
MessageFlags,
} from '../../payloads/v8/index';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals';

Expand Down Expand Up @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down
4 changes: 4 additions & 0 deletions rest/v9/channel.ts
Expand Up @@ -254,6 +254,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down
5 changes: 5 additions & 0 deletions rest/v9/webhook.ts
Expand Up @@ -6,6 +6,7 @@ import type {
APIMessage,
APIWebhook,
APIAttachment,
MessageFlags,
} from '../../payloads/v9/index';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals';

Expand Down Expand Up @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
* Attachment objects with filename and description
*/
attachments?: (Pick<APIAttachment, 'id' | 'description'> & Partial<Pick<APIAttachment, 'filename'>>)[];
/**
* Message flags combined as a bitfield
*/
flags?: MessageFlags;
}>;

/**
Expand Down

0 comments on commit 4194bd9

Please sign in to comment.