diff --git a/src/bot.ts b/src/bot.ts index d2393a043515ead322eeed2adca121cc0bc570ba..5c151ede8f56fb483deade4baae0ff2879639f81 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -20,7 +20,7 @@ import { Log } from "./log"; import * as Discord from "discord.js"; import * as Bluebird from "bluebird"; import * as mime from "mime"; -import { IMatrixEvent } from "./matrixtypes"; +import { IMatrixEvent, IMatrixMediaInfo } from "./matrixtypes"; const log = new Log("DiscordBot"); @@ -45,14 +45,6 @@ interface IThirdPartyLookup { protocol: string; } -interface IMatrixMediaInfo { - w?: number; - h?: number; - mimetype: string; - size: number; - duration?: number; -} - export class DiscordBot { private config: DiscordBridgeConfig; private clientFactory: DiscordClientFactory; diff --git a/src/matrixtypes.ts b/src/matrixtypes.ts index 9e72460f93ae884d79ca4f4e37fd196813939661..5c87ee0d5e548254d498641b68b1db5bf1c762fe 100644 --- a/src/matrixtypes.ts +++ b/src/matrixtypes.ts @@ -33,3 +33,11 @@ export interface IMatrixMessage { formatted_body?: string; format?: string; } + +export interface IMatrixMediaInfo { + w?: number; + h?: number; + mimetype: string; + size: number; + duration?: number; +}