Run bot on every channel it has mod on

But how would it execute the command on that users channel if it’s limited to certain channels? Is there some type of channel.find kinda deal?

Also when doing this, is the channels array neccessary, since I think it would reset every time you restart the bot