public function getUserIDByUsername(string $username) : int { $userId = $this->db->cell('SELECT userid FROM airship_users WHERE username = ?', $username); if (empty($userId)) { throw new UserNotFound(); } return $userId; }