You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
584 B
21 lines
584 B
2 years ago
|
import {Snowflake} from "discord-api-types/globals";
|
||
2 years ago
|
import {CharacterTable} from "../database/characters";
|
||
2 years ago
|
|
||
|
export class CharacterManager {
|
||
2 years ago
|
private
|
||
|
|
||
|
constructor({characters}: {characters: CharacterTable}) {
|
||
|
}
|
||
|
|
||
|
async startNewCharacter(user: Snowflake, overwrite: boolean): Promise<{alreadyEditing: boolean, created: boolean}> {
|
||
|
|
||
2 years ago
|
}
|
||
|
|
||
|
async abandonEditedCharacter(user: Snowflake): Promise<{abandoned: boolean}> {
|
||
|
}
|
||
|
|
||
|
async saveEditedCharacter(user: Snowflake, asNew?: boolean): Promise<{ id: string, name: string, title: string }|{ id: null }> {
|
||
|
|
||
|
}
|
||
|
}
|