Skip to content

Commit

Permalink
Adding ban_expires to person (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Jan 9, 2022
1 parent 176d237 commit ada672c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/interfaces/api/community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export interface BanFromCommunity {
*/
remove_data?: boolean;
reason?: string;
/**
* The expire time in Unix seconds
*/
expires?: number;
auth: string;
}
Expand Down Expand Up @@ -110,6 +113,9 @@ export interface RemoveCommunity {
community_id: number;
removed: boolean;
reason?: string;
/**
* The expire time in Unix seconds
*/
expires?: number;
auth: string;
}
Expand Down
3 changes: 3 additions & 0 deletions src/interfaces/api/person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ export interface BanPerson {
*/
remove_data?: boolean;
reason?: string;
/**
* The expire time in Unix seconds
*/
expires?: number;
auth: string;
}
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface PersonSafe {
matrix_user_id?: string;
admin: boolean;
bot_account: boolean;
ban_expires?: string;
}

export interface Site {
Expand Down

0 comments on commit ada672c

Please sign in to comment.