Quote:
$chan().mode already returns all currently set channel modes with parameters.
No, it doesn't.
For example, there are some servers which have a flood protection channel mode (+f) that requires you to specify the parameters of the protection. If I set +f with parameters in a channel, $chan().mode would only return +f. The parameters afterward can only be found by using /mode #channel.