How can I modify functions in an existing package

In a function created by the author, assuming a normal distribution. And I want to change it to a T distribution. How can I go into the function to change its internal parameters? Thank you!

Get the source code by the functions name without brackets. Copy and paste the code and edit to make your own function.

And if you have that ask the author to include it in their package.