ttt-discord-bot/server/interfaces.ts
2021-11-13 20:21:34 +01:00

25 lines
612 B
TypeScript

import { CommandInteraction, GuildMember } from "discord.js"
import RegistrationHandler from "./RegistrationHandler"
export type Maybe<T> = T | undefined
export interface Player {
name: string
}
export type supported_languages = "german" | "english"
export interface localized_string {
[k: string]: {
german: string,
english: string
}
}
export interface userNameBinding {
Steam: string,
DiscordUser: GuildMember
}
export interface discordCommand {
name: string,
description: string
options?: any[]
performCommand(interaction: CommandInteraction, registration: RegistrationHandler): Promise<void>
}