This commit is contained in:
Alan Mosko
2023-01-11 23:58:29 -03:00
parent 5041be776e
commit 78f04d8714
18 changed files with 405 additions and 253 deletions

View File

@@ -79,6 +79,12 @@ type WithDimensions = {
height?: number
}
export type PollMessageOptions = {
name: string
selectableCount?: number
values: Array<string>
}
export type MediaType = keyof typeof MEDIA_HKDF_KEY_MAPPING
export type AnyMediaMessageContent = (
({
@@ -127,6 +133,9 @@ export type AnyRegularMessageContent = (
}
& Mentionable & Buttonable & Templatable & Listable)
| AnyMediaMessageContent
| ({
poll: PollMessageOptions
} & Mentionable & Buttonable & Templatable)
| {
contacts: {
displayName?: string