Hi, is there a way to find out the modes of a channel even if ur not in the channel?

$chan(#CHANNEL1).mode doesn't work