'Returns the allowed commands in channels'

@api.model
@ormcache()
def get_mention_commands(self):

    commands = []
    for n in dir(self):
        match = re.search('^_define_command_(.+?)$', n)
        if match:
            command = getattr(self, n)()
            command['name'] = match.group(1)
            commands.append(command)
    return commands
