@staticmethod
def get_user_command_id(command=None, user_id=None, command_id=None):
    """Returns commander_id, command_id based on user-supplied information.

        Parameters
        ----------
        command : Command
            User command; used as a default for ``user_id`` and
            ``command_id``.
        user_id : int
            If `None` then use ``command.user_id``.
        command_id : int
            If `None` then use ``command.command_id``.

        Returns
        -------
        user_id, command_id : `tuple`
            The commander ID and the command ID, parsed from the inputs. If
            they cannot be determined, returns zeros.

        """
    user_id = user_id or (command.commander_id if command else 0)
    command_id = command_id or (command.command_id if command else 0)
    return user_id, command_id
