Class LegacyAuditLogQuerySpec

    • Constructor Detail

      • LegacyAuditLogQuerySpec

        public LegacyAuditLogQuerySpec()
    • Method Detail

      • setResponsibleUser

        public LegacyAuditLogQuerySpec setResponsibleUser​(Snowflake userId)
        Sets the query to only return entries where the user specified is responsible for the action.
        Parameters:
        userId - The Snowflake of the responsible user to filter by.
        Returns:
        This spec.
      • setActionType

        public LegacyAuditLogQuerySpec setActionType​(ActionType actionType)
        Sets the query to return entries where the action type is the same as the one provided.
        Parameters:
        actionType - The ActionType of the audit log entries to filter by.
        Returns:
        This spec.
      • setBefore

        public LegacyAuditLogQuerySpec setBefore​(Snowflake beforeId)
        Sets the query to return entries before a certain entry id.
        Parameters:
        beforeId - The Snowflake of the audit log id to filter by before of.
        Returns:
        This spec.
      • setLimit

        public LegacyAuditLogQuerySpec setLimit​(int limit)
        Sets the query to return a max of entries.
        Parameters:
        limit - The limit of the audit log entries to filter by.
        Returns:
        This spec.