Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 19a06752 rédigé par Sorunome's avatar Sorunome
Parcourir les fichiers

move interface to matrixtypes

parent b88c1523
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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;
......
......@@ -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;
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter