How to change which chat channel the user is in?

After some research, I reached the SwitchChannel module script. How do I fire it so it changes the channel? I’m not very familiar with module scripts so how can I use it?

If you’re not familiar with module scripts i’d recommend you read the wiki article on it here: ModuleScript | Documentation - Roblox Creator Hub
but the basic gyst of it is

script using module

local yourmodule = require(yourmodule) --requires the module as to be a variable and be used by this script
yourmodule.myfunction(args here) --calls a function within the modulescript

module itself

local module = {}

function module.myfunction()
	--do something
end

return module