*/
public function add(string $user, array $params): stdClass
{
- $response = $this->connection->query('server_ban.add', [
+ return $this->connection->query('server_ban.add', [
'name' => $user,
'type' => $params['type'],
'reason' => $params['reason'],
- 'expire_at' => $params['length'] ?? '1d',
+ 'duration_string' => $params['length'] ?? '1d',
]);
-
- return $response;
}
/**
*/
public function delete(string $user, array $params): stdClass
{
- $response = $this->connection->query('server_ban.del', [
+ return $this->connection->query('server_ban.del', [
'name' => $user,
'type' => $params['type'],
]);
-
- return $response;
}
/**