Beta Features

From Multi Theft Auto: Wiki

Beta Features are experimental and can change behaviour at any time. The function or event can be removed at any time.

Depending on how important the function is to you, may want to first check that the function exists before using it.

if setPlayerDiscordJoinParams then
    setPlayerDiscordJoinParams(...)
end