def channel(self, match):
if len(match) == <NUM_LIT:9> and match[<NUM_LIT:0>] in ('<STR_LIT:C>','<STR_LIT>','<STR_LIT:D>'):<EOL><INDENT>return self._lookup(Channel, '<STR_LIT:id>', match)<EOL><DEDENT>return self._lookup(Channel, '<STR_LIT:name>', match)<EOL>
Return Channel object for a given Slack ID or name