2021-11-13 20:21:34 +01:00
|
|
|
import { CommandInteraction, GuildMember } from "discord.js"
|
2021-11-13 13:48:38 +01:00
|
|
|
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,
|
2021-11-13 20:21:34 +01:00
|
|
|
DiscordUser: GuildMember
|
2021-11-13 13:48:38 +01:00
|
|
|
}
|
|
|
|
export interface discordCommand {
|
|
|
|
name: string,
|
|
|
|
description: string
|
|
|
|
options?: any[]
|
|
|
|
performCommand(interaction: CommandInteraction, registration: RegistrationHandler): Promise<void>
|
|
|
|
}
|