chore: lint & prettier

This commit is contained in:
Erica Marigold 2022-11-27 20:21:25 +05:30
parent 242dcd727b
commit 1c4a3d8263
No known key found for this signature in database
GPG key ID: 23CD97ABBBCC5ED2
3 changed files with 122 additions and 102 deletions

View file

@ -44,9 +44,6 @@ build/Release
# Dependency directories # Dependency directories
jspm_packages/ jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache # TypeScript cache
*.tsbuildinfo *.tsbuildinfo

View file

@ -0,0 +1,19 @@
import { Embed, Member, Message, User } from "guilded.js";
import { ExtendedClient } from "../structures/Client";
export type ResCtx = {
meta: {
user: Member;
raw: Message;
};
ctx: {
getOptions: () => null | string[];
reply: (content: string | Embed) => void;
};
};
export type CommandType = {
name: string;
description: string;
run: (context: { interaction: ResCtx }) => {};
};

View file

@ -0,0 +1,4 @@
import { ClientEvents } from "guilded.js";
export type extendedEvents = ClientEvents & {
interactionCreate: (...args) => unknown;
};