def is_valid_action(action):
    """Return whether or not the action function is a valid
    detcord action

    Args:
        action (function): the function to check

    Returns:
        bool: Whether or not the action is valid
    """
    return getattr(action, 'detcord_action', False) != False