class

Ban

Inherits Reference < Object

The Ban class is a representation of a ban.

Constructors

new(ip : String, why : String)

Creates a new Ban instance with a ban reason.

Source
new(ip : String)

Creates a new Ban instance with no ban reason.

Source

Instance methods

createBan

Write a ban to the database. WARNING: Incomplete method.

Source
ip

The IP property represents a banned user's IP.

Source
ip=(ip : String)

The IP property represents a banned user's IP.

Source
removeBan

Remove a ban from the database. WARNING: Incomplete method.

Source
why

The why property represents a ban reason.

Source
why=(why : String | Nil)

The why property represents a ban reason.

Source