This commit is contained in:
Lio Young 2021-10-17 18:38:06 +02:00
parent 0b412b3660
commit 3fd6c2af99
1 changed files with 54 additions and 0 deletions

54
src/utils/types.ts Normal file
View File

@ -0,0 +1,54 @@
import { Guild, Message, TextChannel } from "discord.js"
import Modulus from "../modules/modulus/src/index"
import { EuClient } from "../modules/eu/src/misc/types"
export type Features =
| "shortlinks"
| "shortlink"
| "sl"
| "sauce"
| "source"
| "sourcefinder"
| "sf"
| "embeds"
| "embedimages"
| "rp"
| "interactiontext"
export type Server = {
readonly id: string
server_id: string
locale: string
prefix: string[]
shortlinks: boolean
sourcefinder: boolean
embeds: boolean
interaction_text: boolean
}
export type Usage = {
readonly id: string
name: string,
type: string
amount: number
}
export type Context = {
Eu: EuClient,
args: string[]
guild: Guild
message: Message,
channel: TextChannel
member: Message["member"]
author: Message["author"]
modulus: Modulus
settings: Server
config: any
isDev: boolean
}