ttt-discord-bot/server/interfaces.ts

25 lines
590 B
TypeScript
Raw Normal View History

2021-11-13 13:48:38 +01:00
import { CommandInteraction } from "discord.js"
import RegistrationHandler from "./RegistrationHandler"
export type Maybe<T> = T | undefined
2021-11-08 17:34:26 +01:00
export interface Player {
name: string
}
export type supported_languages = "german" | "english"
export interface localized_string {
[k: string]: {
german: string,
english: string
}
}
2021-11-13 13:48:38 +01:00
export interface userNameBinding {
Steam: string,
Discord: string
}
export interface discordCommand {
name: string,
description: string
options?: any[]
performCommand(interaction: CommandInteraction, registration: RegistrationHandler): Promise<void>
}