From 19a06752de3bc88fdd281f06e935b1a3737eba63 Mon Sep 17 00:00:00 2001 From: Sorunome <mail@sorunome.de> Date: Sat, 22 Dec 2018 16:13:56 +0100 Subject: [PATCH] move interface to matrixtypes --- src/bot.ts | 10 +--------- src/matrixtypes.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index d2393a0..5c151ed 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 9e72460..5c87ee0 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; +} -- GitLab