Discord Bot php setNickname command Prefix + nickname

one text

hey how is everything? I have the following bot working. The user gives the command !apply "your game nick" and the bot looks for this nick in an api, changes the user nick equal to the game's nick, which was returned in the api and sets some roles. I would like it to work like this:

The user used the command: "!apply your character's NickName + Level".

Ex: "!apply Fred 122"

And the bot would continue with the verification it already does but use this "level" (122) to assign a prefix that sets the username before the nick. That the result of the nick is:

"[122] Fred".

This is the line that changes the Nickname:

$message->member->setNickname($result["characters"][0]["name"])->done(function () use ($message,$result,$packet)

It's possible? Could anyone help me on what I can change from the code?

Thank you very much again and the code below: Code

I'm inexperienced, I tried to get some examples in videos on the internet but nothing worked.

Source