mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2024-12-12 04:40:36 +00:00
chore: lint & prettier
This commit is contained in:
parent
242dcd727b
commit
1c4a3d8263
3 changed files with 122 additions and 102 deletions
3
packages/framework/typescript/.gitignore
vendored
3
packages/framework/typescript/.gitignore
vendored
|
@ -44,9 +44,6 @@ build/Release
|
|||
# Dependency directories
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
|
|
19
packages/framework/typescript/src/typings/command.ts
Normal file
19
packages/framework/typescript/src/typings/command.ts
Normal 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 }) => {};
|
||||
};
|
4
packages/framework/typescript/src/typings/events.ts
Normal file
4
packages/framework/typescript/src/typings/events.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { ClientEvents } from "guilded.js";
|
||||
export type extendedEvents = ClientEvents & {
|
||||
interactionCreate: (...args) => unknown;
|
||||
};
|
Loading…
Reference in a new issue