Add ESLint (#941)
* Add eslint, switch to lint-staged for precommit * Fix all ESLint errors * Update GH workflow to check prettier and eslint
This commit is contained in:
@@ -18,6 +18,11 @@
|
||||
|
||||
import { Embed } from "@fosscord/util";
|
||||
|
||||
type Attachment = {
|
||||
id: string;
|
||||
filename: string;
|
||||
};
|
||||
|
||||
export interface MessageCreateSchema {
|
||||
type?: number;
|
||||
content?: string;
|
||||
@@ -41,11 +46,11 @@ export interface MessageCreateSchema {
|
||||
fail_if_not_exists?: boolean;
|
||||
};
|
||||
payload_json?: string;
|
||||
file?: any;
|
||||
file?: { filename: string };
|
||||
/**
|
||||
TODO: we should create an interface for attachments
|
||||
TODO: OpenWAAO<-->attachment-style metadata conversion
|
||||
**/
|
||||
attachments?: any[];
|
||||
attachments?: Attachment[];
|
||||
sticker_ids?: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user