diff --git a/package.json b/package.json index d509c3a8..50d42d30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revolt.js", - "version": "4.1.1-alpha.5-patch.0", + "version": "4.1.1-alpha.6", "main": "dist/index.js", "repository": "https://gitlab.insrt.uk/revolt/revolt.js", "author": "Paul Makles ", diff --git a/src/api/objects.ts b/src/api/objects.ts index 3adf73dc..5e941bcd 100644 --- a/src/api/objects.ts +++ b/src/api/objects.ts @@ -99,6 +99,7 @@ export namespace Channels { export type Metadata = ( { type: 'File' } | + { type: 'Text' } | { type: 'Audio' } | { type: 'Image', width: number, height: number } | { type: 'Video', width: number, height: number } @@ -106,9 +107,11 @@ export namespace Channels { export type Attachment = { _id: string, + tag: string, + size: string, filename: string, metadata: Metadata, - content_type: string + content_type: string, }; export type Message = { diff --git a/src/index.ts b/src/index.ts index 5b1fb25d..597c5b45 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ export * from './Client'; export { Channel, User, Message } from './api/objects'; -export const LIBRARY_VERSION = '4.1.1-alpha.5-patch.0'; +export const LIBRARY_VERSION = '4.1.1-alpha.6'; export const defaultConfig = { apiURL: 'https://api.revolt.chat',