Skip to content

Type Alias: IServerBan ​

ts
type IServerBan = object;

Defined in: types/api.base.ts:426

A ban, as the people who can lift it see it.

reason is the message the banned user was sent with it. note is for the moderators: the banned user never sees it.

Properties ​

bannedBy ​

ts
bannedBy: IUserSimple | null;

Defined in: types/api.base.ts:431


createdAt ​

ts
createdAt: string;

Defined in: types/api.base.ts:438


expiresAt ​

ts
expiresAt: string | null;

Defined in: types/api.base.ts:437


note ​

ts
note: string | null;

Defined in: types/api.base.ts:433


noteUpdatedAt ​

ts
noteUpdatedAt: string | null;

Defined in: types/api.base.ts:435


noteUpdatedBy ​

ts
noteUpdatedBy: IUserSimple | null;

Defined in: types/api.base.ts:434


reason ​

ts
reason: string | null;

Defined in: types/api.base.ts:432


serverId ​

ts
serverId: number;

Defined in: types/api.base.ts:427


user ​

ts
user: IUserSimple | null;

Defined in: types/api.base.ts:430


userId ​

ts
userId: number;

Defined in: types/api.base.ts:428

Released under the GNU Affero General Public License v3.0.