mirror of https://github.com/thaldrin/thaldrin.git
types
This commit is contained in:
parent
0b412b3660
commit
3fd6c2af99
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue