2020-06-30 17:48:18 +03:00
|
|
|
import { BaseConfig, Knub } from "knub";
|
2020-01-12 13:37:43 +02:00
|
|
|
|
2020-06-30 17:48:18 +03:00
|
|
|
export interface IZeppelinGuildConfig extends BaseConfig<any> {
|
2020-01-12 13:44:31 +02:00
|
|
|
success_emoji?: string;
|
|
|
|
error_emoji?: string;
|
2020-01-12 13:37:43 +02:00
|
|
|
}
|
|
|
|
|
2020-06-30 17:48:18 +03:00
|
|
|
export interface IZeppelinGlobalConfig extends BaseConfig<any> {
|
2020-01-12 13:37:43 +02:00
|
|
|
url: string;
|
|
|
|
owners?: string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TZeppelinKnub = Knub<IZeppelinGuildConfig, IZeppelinGlobalConfig>;
|
2020-07-05 05:00:54 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Wrapper for the string type that indicates the text will be parsed as Markdown later
|
|
|
|
*/
|
2020-07-22 23:11:42 +03:00
|
|
|
export type TMarkdown = string;
|
2020-07-05 05:00:54 +03:00
|
|
|
|
|
|
|
export interface ZeppelinPluginInfo {
|
|
|
|
prettyName: string;
|
|
|
|
description?: TMarkdown;
|
|
|
|
usageGuide?: TMarkdown;
|
|
|
|
configurationGuide?: TMarkdown;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CommandInfo {
|
|
|
|
description?: TMarkdown;
|
|
|
|
basicUsage?: TMarkdown;
|
|
|
|
examples?: TMarkdown;
|
|
|
|
usageGuide?: TMarkdown;
|
|
|
|
parameterDescriptions?: {
|
|
|
|
[key: string]: TMarkdown;
|
|
|
|
};
|
|
|
|
optionDescriptions?: {
|
|
|
|
[key: string]: TMarkdown;
|
|
|
|
};
|
|
|
|
}
|