Interface APIBan

Represents a user's ban from the API

Hierarchy

Properties

ban_reason: "other" | "abuse_harassment" | "child_pornography" | "hardcore" | "hate_speech" | "bot_spam" | "threats_of_harm" | "death_gore"
ban_reason_message?: string

Example

"Hate Speech"
"Death / gore"
can_be_appealed: boolean
created_at: number
date_until: number

Unix EpochSec of when the ban expires
? IN SECONDS! More better accuracy, convert to milliseconds

date_until_minimum?: number
id: string

Unique ban Id

is_active: boolean
is_appealed: boolean
is_shortable: boolean
pid: number

? Only observed to be 1, 3, 17

related_comment?: APIComment
related_content?: APIContent
type: "chat_access" | "comment_creation" | "content_creation" | "profile_access" | "repubing" | "smiling" | "subscribing" | "other" | "collective_shadow"

The type of ban

type_message?: string

Example

"commenting was suspended from Aug 19, 2021 to Aug 26, 2021"
"content creation suspended until Sep 15, 2022"
was_shown: boolean

Generated using TypeDoc