mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 23:25:02 +00:00
Add support for hiding cases with !hidecase
This commit is contained in:
parent
1ddbb379c5
commit
799ac2d502
6 changed files with 105 additions and 13 deletions
|
@ -53,6 +53,15 @@ export class GuildCases extends BaseRepository {
|
|||
});
|
||||
}
|
||||
|
||||
async setHidden(id: number, hidden: boolean): Promise<void> {
|
||||
await this.cases.update(
|
||||
{ id },
|
||||
{
|
||||
is_hidden: hidden
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async create(data): Promise<Case> {
|
||||
const result = await this.cases.insert({
|
||||
...data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue