class GuildBan extends ClientBase (View source)

Represents a guild ban.

Properties

Client $client The client which initiated the instance. from ClientBase
static Client|null $serializeClient The client which will be used to unserialize. from ClientBase
Guild $guild The guild this ban is from.
User $user The banned user.
string|null $reason The ban reason, or null.

Methods

__construct(Client $client, Guild $guild, User $user, string|null $reason)

No description

__destruct()

Default destructor.

from Base
bool
__isset(string $name)

No description

from Base
mixed
__get(string $name)

No description

mixed
__call(string $name, array $args)

No description

from Base
mixed
jsonSerialize()

No description

string
serialize()

No description

void
unserialize($data)

No description

void
_patch(array $data)

No description

from Base
bool
_shouldUpdate(array $data)

No description

from Base
void
_markForDelete()

No description

from Base
mixed
__debugInfo()

No description

ExtendedPromiseInterface
unban(string $reason = '')

Unbans the user.

Details

__construct(Client $client, Guild $guild, User $user, string|null $reason)

Parameters

Client $client
Guild $guild
User $user
string|null $reason

__destruct()

Default destructor.

bool __isset(string $name)

Parameters

string $name

Return Value

bool

Exceptions

Exception

mixed __get(string $name)

Parameters

string $name

Return Value

mixed

Exceptions

RuntimeException

mixed __call(string $name, array $args)

Parameters

string $name
array $args

Return Value

mixed

Exceptions

RuntimeException

mixed jsonSerialize()

Return Value

mixed

string serialize()

Return Value

string

void unserialize($data)

Parameters

$data

Return Value

void

void _patch(array $data)

Parameters

array $data

Return Value

void

bool _shouldUpdate(array $data)

Parameters

array $data

Return Value

bool

void _markForDelete()

Return Value

void

mixed __debugInfo()

Return Value

mixed

ExtendedPromiseInterface unban(string $reason = '')

Unbans the user.

Parameters

string $reason

Return Value

ExtendedPromiseInterface